Warning: Permanently added '98.92.163.228' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/9960551-epel-9-x86_64 --chroot epel-9-x86_64 Version: 1.6 PID: 9246 Logging PID: 9248 Task: {'allow_user_ssh': False, 'appstream': False, 'background': False, 'build_id': 9960551, 'buildroot_pkgs': [], 'chroot': 'epel-9-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': 'cb9df9a60ef6fd670336b00a8c09f9d336cd8d61', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/aminasyan/el9-collection/mongodb', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'mongodb', 'package_version': '4.0.3-3.el9', 'project_dirname': 'el9-collection', 'project_name': 'el9-collection', 'project_owner': 'aminasyan', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/aminasyan/el9-collection/epel-9-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None}, {'baseurl': 'https://download.copr.fedorainfracloud.org/results/aminasyan/el9-collection/epel-9-x86_64/', 'id': 'copr_aminasyan_el9_collection', 'name': 'Additional repo copr_aminasyan_el9_collection'}], 'sandbox': 'aminasyan/el9-collection--aminasyan', 'source_json': {}, 'source_type': None, 'ssh_public_keys': None, 'storage': 0, 'submitter': 'aminasyan', 'tags': [], 'task_id': '9960551-epel-9-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/aminasyan/el9-collection/mongodb /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/aminasyan/el9-collection/mongodb', '/var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb'... Running: git checkout cb9df9a60ef6fd670336b00a8c09f9d336cd8d61 -- cmd: ['git', 'checkout', 'cb9df9a60ef6fd670336b00a8c09f9d336cd8d61', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb rc: 0 stdout: stderr: Note: switching to 'cb9df9a60ef6fd670336b00a8c09f9d336cd8d61'. 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 cb9df9a automatic import of mongodb Running: dist-git-client sources cmd: ['dist-git-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/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: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -o r4.0.3.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/aminasyan/el9-collection/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 464M 0 --:--:-- --:--:-- --:--:-- 468M INFO: Reading stdout from command: md5sum r4.0.3.tar.gz tail: /var/lib/copr-rpmbuild/main.log: file truncated Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb/mongodb.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1767084518.434607 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 6.6 starting (python version = 3.13.7, NVR = mock-6.6-1.fc42), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb/mongodb.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1767084518.434607 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins 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-iggg7l1q/mongodb/mongodb.spec) Config(rhel+epel-9-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 6.6 INFO: Mock Version: 6.6 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/rhel+epel-9-x86_64-bootstrap-1767084518.434607/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using container image: registry.access.redhat.com/ubi9/ubi INFO: Pulling image: registry.access.redhat.com/ubi9/ubi INFO: Tagging container image as mock-bootstrap-116593d8-e2a9-4a73-a396-ac59d523298d INFO: Checking that d1a270d60e90c029c9a2576f61d3cf397e930c9c50d2d567cdbd4f2b732318a6 image matches host's architecture INFO: Copy content of container d1a270d60e90c029c9a2576f61d3cf397e930c9c50d2d567cdbd4f2b732318a6 to /var/lib/mock/rhel+epel-9-x86_64-bootstrap-1767084518.434607/root INFO: mounting d1a270d60e90c029c9a2576f61d3cf397e930c9c50d2d567cdbd4f2b732318a6 with podman image mount INFO: image d1a270d60e90c029c9a2576f61d3cf397e930c9c50d2d567cdbd4f2b732318a6 as /var/lib/containers/storage/overlay/b9ccb069e30b6e8fb23e47cd50c622ec6ff24b087170d4bb3e900dc5868ce209/merged INFO: umounting image d1a270d60e90c029c9a2576f61d3cf397e930c9c50d2d567cdbd4f2b732318a6 (/var/lib/containers/storage/overlay/b9ccb069e30b6e8fb23e47cd50c622ec6ff24b087170d4bb3e900dc5868ce209/merged) with podman image umount INFO: Removing image mock-bootstrap-116593d8-e2a9-4a73-a396-ac59d523298d INFO: Package manager dnf4 detected and used (fallback) INFO: Not updating bootstrap chroot, bootstrap_image_ready=True Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/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 INFO: Package manager dnf4 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.16.1.3-39.el9.x86_64 python3-dnf-4.14.0-31.el9.noarch python3-dnf-plugins-core-4.3.0-24.el9_7.noarch yum-4.14.0-31.el9.noarch Start: installing minimal buildroot with dnf No matches found for the following disable plugin patterns: local, spacewalk, versionlock Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Copr repository 2.3 MB/s | 1.2 MB 00:00 Additional repo copr_aminasyan_el9_collection 35 MB/s | 1.2 MB 00:00 Red Hat Enterprise Linux - BaseOS 214 MB/s | 95 MB 00:00 Red Hat Enterprise Linux - AppStream 179 MB/s | 79 MB 00:00 Red Hat Enterprise Linux - CodeReady Linux Buil 35 MB/s | 15 MB 00:00 Extra Packages for Enterprise Linux 9 - x86_64 54 MB/s | 20 MB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: bash x86_64 5.1.8-9.el9 baseos 1.7 M bzip2 x86_64 1.0.8-10.el9_5 baseos 60 k coreutils x86_64 8.32-39.el9 baseos 1.2 M cpio x86_64 2.13-16.el9 baseos 279 k diffutils x86_64 3.7-12.el9 baseos 402 k epel-rpm-macros noarch 9-17.el9 epel 15 k findutils x86_64 1:4.8.0-7.el9 baseos 550 k gawk x86_64 5.1.0-6.el9 baseos 1.0 M glibc-minimal-langpack x86_64 2.34-231.el9_7.2 baseos 22 k grep x86_64 3.6-5.el9 baseos 273 k gzip x86_64 1.12-1.el9 baseos 167 k info x86_64 6.7-15.el9 baseos 228 k patch x86_64 2.7.6-16.el9 appstream 130 k redhat-release x86_64 9.7-0.7.el9 baseos 53 k redhat-rpm-config noarch 210-1.el9 appstream 70 k rpm-build x86_64 4.16.1.3-39.el9 appstream 66 k sed x86_64 4.8-9.el9 baseos 309 k tar x86_64 2:1.34-7.el9 baseos 889 k unzip x86_64 6.0-59.el9 baseos 182 k util-linux x86_64 2.37.4-21.el9 baseos 2.3 M which x86_64 2.21-30.el9_6 baseos 41 k xz x86_64 5.2.5-8.el9_0 baseos 230 k Installing dependencies: alternatives x86_64 1.24-2.el9 baseos 42 k ansible-srpm-macros noarch 1-16.el9 epel 21 k audit-libs x86_64 3.1.5-7.el9 baseos 119 k basesystem noarch 11-13.el9 baseos 8.0 k binutils x86_64 2.35.2-67.el9_7.1 baseos 4.6 M binutils-gold x86_64 2.35.2-67.el9_7.1 baseos 734 k bzip2-libs x86_64 1.0.8-10.el9_5 baseos 42 k ca-certificates noarch 2025.2.80_v9.0.305-91.el9 baseos 1.0 M coreutils-common x86_64 8.32-39.el9 baseos 2.0 M cracklib x86_64 2.9.6-27.el9 baseos 99 k cracklib-dicts x86_64 2.9.6-27.el9 baseos 3.6 M crypto-policies noarch 20250905-1.git377cc42.el9_7 baseos 90 k curl x86_64 7.76.1-34.el9 baseos 292 k cyrus-sasl-lib x86_64 2.1.27-22.el9 baseos 768 k debugedit x86_64 5.0-11.el9 appstream 77 k dwz x86_64 0.16-1.el9 appstream 134 k ed x86_64 1.14.2-12.el9 baseos 78 k efi-srpm-macros noarch 6-4.el9 appstream 21 k elfutils x86_64 0.193-1.el9 baseos 598 k elfutils-debuginfod-client x86_64 0.193-1.el9 baseos 44 k elfutils-default-yama-scope noarch 0.193-1.el9 baseos 9.7 k elfutils-libelf x86_64 0.193-1.el9 baseos 205 k elfutils-libs x86_64 0.193-1.el9 baseos 268 k file x86_64 5.39-16.el9 baseos 52 k file-libs x86_64 5.39-16.el9 baseos 593 k filesystem x86_64 3.16-5.el9 baseos 4.8 M fonts-srpm-macros noarch 1:2.0.5-7.el9.1 appstream 29 k forge-srpm-macros noarch 0.4.0-1.el9 epel 19 k fpc-srpm-macros noarch 1.3-7.el9 epel 7.5 k gdb-minimal x86_64 16.3-2.el9 appstream 4.4 M gdbm-libs x86_64 1:1.23-1.el9 baseos 59 k ghc-srpm-macros noarch 1.5.0-6.el9 appstream 9.0 k ghc-srpm-macros-epel noarch 1.9.1-1.el9 epel 7.5 k glibc x86_64 2.34-231.el9_7.2 baseos 2.0 M glibc-common x86_64 2.34-231.el9_7.2 baseos 306 k glibc-gconv-extra x86_64 2.34-231.el9_7.2 baseos 1.7 M gmp x86_64 1:6.2.0-13.el9 baseos 319 k go-srpm-macros noarch 3.6.0-12.el9_7 appstream 27 k go-srpm-macros-epel noarch 3.8.0-1.el9 epel 26 k groff-base x86_64 1.22.4-10.el9 baseos 1.1 M json-c x86_64 0.14-11.el9 baseos 45 k kernel-srpm-macros noarch 1.0-14.el9 appstream 14 k keyutils-libs x86_64 1.6.3-1.el9 baseos 34 k krb5-libs x86_64 1.21.1-8.el9_6 baseos 766 k libacl x86_64 2.3.1-4.el9 baseos 24 k libarchive x86_64 3.5.3-6.el9_6 baseos 387 k libattr x86_64 2.5.1-3.el9 baseos 20 k libblkid x86_64 2.37.4-21.el9 baseos 109 k libbrotli x86_64 1.0.9-7.el9_5 baseos 316 k libcap x86_64 2.48-10.el9 baseos 70 k libcap-ng x86_64 0.8.2-7.el9 baseos 36 k libcom_err x86_64 1.46.5-8.el9 baseos 26 k libcurl x86_64 7.76.1-34.el9 baseos 283 k libdb x86_64 5.3.28-57.el9_6 baseos 737 k libeconf x86_64 0.4.1-4.el9 baseos 30 k libevent x86_64 2.1.12-8.el9_4 baseos 266 k libfdisk x86_64 2.37.4-21.el9 baseos 156 k libffi x86_64 3.4.2-8.el9 baseos 40 k libgcc x86_64 11.5.0-11.el9 baseos 85 k libgcrypt x86_64 1.10.0-11.el9 baseos 510 k libgomp x86_64 11.5.0-11.el9 baseos 257 k libgpg-error x86_64 1.42-5.el9 baseos 220 k libidn2 x86_64 2.3.0-7.el9 baseos 105 k libmount x86_64 2.37.4-21.el9 baseos 136 k libnghttp2 x86_64 1.43.0-6.el9 baseos 75 k libpkgconf x86_64 1.7.3-10.el9 baseos 37 k libpsl x86_64 0.21.1-5.el9 baseos 66 k libpwquality x86_64 1.4.4-8.el9 baseos 123 k libselinux x86_64 3.6-3.el9 baseos 88 k libsemanage x86_64 3.6-5.el9_6 baseos 121 k libsepol x86_64 3.6-3.el9 baseos 331 k libsigsegv x86_64 2.13-4.el9 baseos 30 k libsmartcols x86_64 2.37.4-21.el9 baseos 65 k libssh x86_64 0.10.4-17.el9_7 baseos 214 k libssh-config noarch 0.10.4-17.el9_7 baseos 8.1 k libstdc++ x86_64 11.5.0-11.el9 baseos 742 k libtasn1 x86_64 4.16.0-9.el9 baseos 77 k libtool-ltdl x86_64 2.4.6-46.el9 baseos 37 k libunistring x86_64 0.9.10-15.el9 baseos 499 k libutempter x86_64 1.2.1-6.el9 baseos 30 k libuuid x86_64 2.37.4-21.el9 baseos 30 k libverto x86_64 0.3.2-3.el9 baseos 24 k libxcrypt x86_64 4.4.18-3.el9 baseos 120 k libxml2 x86_64 2.9.13-14.el9_7 baseos 747 k libzstd x86_64 1.5.5-1.el9 baseos 297 k lua-libs x86_64 5.4.4-4.el9 baseos 132 k lua-srpm-macros noarch 1-6.el9 appstream 10 k lz4-libs x86_64 1.9.3-5.el9 baseos 69 k mpfr x86_64 4.1.0-7.el9 baseos 329 k ncurses x86_64 6.2-12.20210508.el9 baseos 406 k ncurses-base noarch 6.2-12.20210508.el9 baseos 96 k ncurses-libs x86_64 6.2-12.20210508.el9 baseos 328 k ocaml-srpm-macros noarch 6-6.el9 appstream 9.1 k openblas-srpm-macros noarch 2-11.el9 appstream 8.6 k openldap x86_64 2.6.8-4.el9 baseos 290 k openssl x86_64 1:3.5.1-4.el9_7 baseos 1.5 M openssl-fips-provider x86_64 3.0.7-8.el9 baseos 9.2 k openssl-fips-provider-so x86_64 3.0.7-8.el9 baseos 576 k openssl-libs x86_64 1:3.5.1-4.el9_7 baseos 2.3 M p11-kit x86_64 0.25.3-3.el9_5 baseos 536 k p11-kit-trust x86_64 0.25.3-3.el9_5 baseos 144 k pam x86_64 1.5.1-26.el9_6 baseos 622 k pcre x86_64 8.44-4.el9 baseos 200 k pcre2 x86_64 10.40-6.el9 baseos 236 k pcre2-syntax noarch 10.40-6.el9 baseos 144 k perl-AutoLoader noarch 5.74-481.1.el9_6 appstream 21 k perl-B x86_64 1.80-481.1.el9_6 appstream 180 k perl-Carp noarch 1.50-460.el9 appstream 31 k perl-Class-Struct noarch 0.66-481.1.el9_6 appstream 22 k perl-Data-Dumper x86_64 2.174-462.el9 appstream 59 k perl-Digest noarch 1.19-4.el9 appstream 29 k perl-Digest-MD5 x86_64 2.58-4.el9 appstream 39 k perl-Encode x86_64 4:3.08-462.el9 appstream 1.7 M perl-Errno x86_64 1.30-481.1.el9_6 appstream 15 k perl-Exporter noarch 5.74-461.el9 appstream 34 k perl-Fcntl x86_64 1.13-481.1.el9_6 appstream 20 k perl-File-Basename noarch 2.85-481.1.el9_6 appstream 17 k perl-File-Path noarch 2.18-4.el9 appstream 38 k perl-File-Temp noarch 1:0.231.100-4.el9 appstream 63 k perl-File-stat noarch 1.09-481.1.el9_6 appstream 17 k perl-FileHandle noarch 2.03-481.1.el9_6 appstream 15 k perl-Getopt-Long noarch 1:2.52-4.el9 appstream 64 k perl-Getopt-Std noarch 1.12-481.1.el9_6 appstream 15 k perl-HTTP-Tiny noarch 0.076-462.el9 appstream 57 k perl-IO x86_64 1.43-481.1.el9_6 appstream 88 k perl-IO-Socket-IP noarch 0.41-5.el9 appstream 45 k perl-IO-Socket-SSL noarch 2.073-2.el9 appstream 221 k perl-IPC-Open3 noarch 1.21-481.1.el9_6 appstream 22 k perl-MIME-Base64 x86_64 3.16-4.el9 appstream 34 k perl-Mozilla-CA noarch 20200520-6.el9 appstream 14 k perl-Net-SSLeay x86_64 1.94-3.el9 appstream 414 k perl-POSIX x86_64 1.94-481.1.el9_6 appstream 96 k perl-PathTools x86_64 3.78-461.el9 appstream 92 k perl-Pod-Escapes noarch 1:1.07-460.el9 appstream 22 k perl-Pod-Perldoc noarch 3.28.01-461.el9 appstream 92 k perl-Pod-Simple noarch 1:3.42-4.el9 appstream 229 k perl-Pod-Usage noarch 4:2.01-4.el9 appstream 43 k perl-Scalar-List-Utils x86_64 4:1.56-462.el9 appstream 75 k perl-SelectSaver noarch 1.02-481.1.el9_6 appstream 11 k perl-Socket x86_64 4:2.031-4.el9 appstream 58 k perl-Storable x86_64 1:3.21-460.el9 appstream 98 k perl-Symbol noarch 1.08-481.1.el9_6 appstream 14 k perl-Term-ANSIColor noarch 5.01-461.el9 appstream 51 k perl-Term-Cap noarch 1.17-460.el9 appstream 24 k perl-Text-ParseWords noarch 3.30-460.el9 appstream 18 k perl-Text-Tabs+Wrap noarch 2013.0523-460.el9 appstream 25 k perl-Time-Local noarch 2:1.300-7.el9 appstream 37 k perl-URI noarch 5.09-3.el9 appstream 125 k perl-base noarch 2.27-481.1.el9_6 appstream 16 k perl-constant noarch 1.33-461.el9 appstream 25 k perl-if noarch 0.60.800-481.1.el9_6 appstream 14 k perl-interpreter x86_64 4:5.32.1-481.1.el9_6 appstream 70 k perl-libnet noarch 3.13-4.el9 appstream 134 k perl-libs x86_64 4:5.32.1-481.1.el9_6 appstream 2.2 M perl-mro x86_64 1.23-481.1.el9_6 appstream 28 k perl-overload noarch 1.31-481.1.el9_6 appstream 45 k perl-overloading noarch 0.02-481.1.el9_6 appstream 12 k perl-parent noarch 1:0.238-460.el9 appstream 16 k perl-podlators noarch 1:4.14-460.el9 appstream 118 k perl-srpm-macros noarch 1-41.el9 appstream 9.4 k perl-subs noarch 1.03-481.1.el9_6 appstream 11 k perl-vars noarch 1.05-481.1.el9_6 appstream 13 k pkgconf x86_64 1.7.3-10.el9 baseos 45 k pkgconf-m4 noarch 1.7.3-10.el9 baseos 16 k pkgconf-pkg-config x86_64 1.7.3-10.el9 baseos 12 k popt x86_64 1.18-8.el9 baseos 69 k publicsuffix-list-dafsa noarch 20210518-3.el9 baseos 59 k pyproject-srpm-macros noarch 1.16.2-1.el9 appstream 14 k python-srpm-macros noarch 3.9-54.el9 appstream 18 k qt5-srpm-macros noarch 5.15.9-1.el9 appstream 9.1 k qt6-srpm-macros noarch 6.6.2-1.el9 epel 8.7 k readline x86_64 8.1-4.el9 baseos 215 k rpm x86_64 4.16.1.3-39.el9 baseos 535 k rpm-build-libs x86_64 4.16.1.3-39.el9 baseos 88 k rpm-libs x86_64 4.16.1.3-39.el9 baseos 307 k rpmautospec-rpm-macros noarch 0.8.1-11.el9 epel 11 k rust-srpm-macros noarch 17-4.el9 appstream 11 k rust-srpm-macros-epel noarch 26.3-1.el9 epel 10 k setup noarch 2.13.7-10.el9 baseos 150 k shadow-utils x86_64 2:4.9-15.el9 baseos 1.2 M sqlite-libs x86_64 3.34.1-9.el9_7 baseos 642 k systemd-libs x86_64 252-55.el9_7.7 baseos 676 k tzdata noarch 2025c-1.el9 baseos 904 k util-linux-core x86_64 2.37.4-21.el9 baseos 469 k xz-libs x86_64 5.2.5-8.el9_0 baseos 94 k zip x86_64 3.0-35.el9 baseos 270 k zlib x86_64 1.2.11-40.el9 baseos 93 k zstd x86_64 1.5.5-1.el9 baseos 468 k Transaction Summary ================================================================================ Install 210 Packages Total download size: 70 M Installed size: 222 M Downloading Packages: (1/210): cpio-2.13-16.el9.x86_64.rpm 2.8 MB/s | 279 kB 00:00 (2/210): basesystem-11-13.el9.noarch.rpm 78 kB/s | 8.0 kB 00:00 (3/210): cracklib-2.9.6-27.el9.x86_64.rpm 801 kB/s | 99 kB 00:00 (4/210): ed-1.14.2-12.el9.x86_64.rpm 933 kB/s | 78 kB 00:00 (5/210): grep-3.6-5.el9.x86_64.rpm 3.2 MB/s | 273 kB 00:00 (6/210): groff-base-1.22.4-10.el9.x86_64.rpm 9.3 MB/s | 1.1 MB 00:00 (7/210): info-6.7-15.el9.x86_64.rpm 2.9 MB/s | 228 kB 00:00 (8/210): json-c-0.14-11.el9.x86_64.rpm 581 kB/s | 45 kB 00:00 (9/210): libattr-2.5.1-3.el9.x86_64.rpm 247 kB/s | 20 kB 00:00 (10/210): libcap-ng-0.8.2-7.el9.x86_64.rpm 497 kB/s | 36 kB 00:00 (11/210): libgpg-error-1.42-5.el9.x86_64.rpm 2.2 MB/s | 220 kB 00:00 (12/210): libpsl-0.21.1-5.el9.x86_64.rpm 853 kB/s | 66 kB 00:00 (13/210): libidn2-2.3.0-7.el9.x86_64.rpm 1.2 MB/s | 105 kB 00:00 (14/210): libpwquality-1.4.4-8.el9.x86_64.rpm 1.5 MB/s | 123 kB 00:00 (15/210): libsigsegv-2.13-4.el9.x86_64.rpm 384 kB/s | 30 kB 00:00 (16/210): libunistring-0.9.10-15.el9.x86_64.rpm 6.2 MB/s | 499 kB 00:00 (17/210): libutempter-1.2.1-6.el9.x86_64.rpm 288 kB/s | 30 kB 00:00 (18/210): libverto-0.3.2-3.el9.x86_64.rpm 320 kB/s | 24 kB 00:00 (19/210): libxcrypt-4.4.18-3.el9.x86_64.rpm 1.6 MB/s | 120 kB 00:00 (20/210): lz4-libs-1.9.3-5.el9.x86_64.rpm 736 kB/s | 69 kB 00:00 (21/210): mpfr-4.1.0-7.el9.x86_64.rpm 4.1 MB/s | 329 kB 00:00 (22/210): popt-1.18-8.el9.x86_64.rpm 766 kB/s | 69 kB 00:00 (23/210): publicsuffix-list-dafsa-20210518-3.el 786 kB/s | 59 kB 00:00 (24/210): readline-8.1-4.el9.x86_64.rpm 2.7 MB/s | 215 kB 00:00 (25/210): sed-4.8-9.el9.x86_64.rpm 3.3 MB/s | 309 kB 00:00 (26/210): diffutils-3.7-12.el9.x86_64.rpm 4.9 MB/s | 402 kB 00:00 (27/210): cracklib-dicts-2.9.6-27.el9.x86_64.rp 38 MB/s | 3.6 MB 00:00 (28/210): gawk-5.1.0-6.el9.x86_64.rpm 12 MB/s | 1.0 MB 00:00 (29/210): xz-5.2.5-8.el9_0.x86_64.rpm 3.0 MB/s | 230 kB 00:00 (30/210): gzip-1.12-1.el9.x86_64.rpm 1.9 MB/s | 167 kB 00:00 (31/210): xz-libs-5.2.5-8.el9_0.x86_64.rpm 878 kB/s | 94 kB 00:00 (32/210): keyutils-libs-1.6.3-1.el9.x86_64.rpm 427 kB/s | 34 kB 00:00 (33/210): pkgconf-1.7.3-10.el9.x86_64.rpm 576 kB/s | 45 kB 00:00 (34/210): libpkgconf-1.7.3-10.el9.x86_64.rpm 460 kB/s | 37 kB 00:00 (35/210): pkgconf-m4-1.7.3-10.el9.noarch.rpm 180 kB/s | 16 kB 00:00 (36/210): pkgconf-pkg-config-1.7.3-10.el9.x86_6 162 kB/s | 12 kB 00:00 (37/210): zip-3.0-35.el9.x86_64.rpm 3.5 MB/s | 270 kB 00:00 (38/210): gmp-6.2.0-13.el9.x86_64.rpm 3.9 MB/s | 319 kB 00:00 (39/210): lua-libs-5.4.4-4.el9.x86_64.rpm 1.6 MB/s | 132 kB 00:00 (40/210): libffi-3.4.2-8.el9.x86_64.rpm 462 kB/s | 40 kB 00:00 (41/210): zlib-1.2.11-40.el9.x86_64.rpm 1.2 MB/s | 93 kB 00:00 (42/210): file-5.39-16.el9.x86_64.rpm 677 kB/s | 52 kB 00:00 (43/210): bash-5.1.8-9.el9.x86_64.rpm 20 MB/s | 1.7 MB 00:00 (44/210): file-libs-5.39-16.el9.x86_64.rpm 6.3 MB/s | 593 kB 00:00 (45/210): libacl-2.3.1-4.el9.x86_64.rpm 313 kB/s | 24 kB 00:00 (46/210): setup-2.13.7-10.el9.noarch.rpm 1.9 MB/s | 150 kB 00:00 (47/210): libevent-2.1.12-8.el9_4.x86_64.rpm 3.1 MB/s | 266 kB 00:00 (48/210): findutils-4.8.0-7.el9.x86_64.rpm 6.9 MB/s | 550 kB 00:00 (49/210): filesystem-3.16-5.el9.x86_64.rpm 35 MB/s | 4.8 MB 00:00 (50/210): gdbm-libs-1.23-1.el9.x86_64.rpm 627 kB/s | 59 kB 00:00 (51/210): libeconf-0.4.1-4.el9.x86_64.rpm 384 kB/s | 30 kB 00:00 (52/210): libgcrypt-1.10.0-11.el9.x86_64.rpm 5.6 MB/s | 510 kB 00:00 (53/210): libnghttp2-1.43.0-6.el9.x86_64.rpm 1.0 MB/s | 75 kB 00:00 (54/210): pcre-8.44-4.el9.x86_64.rpm 2.6 MB/s | 200 kB 00:00 (55/210): pcre2-10.40-6.el9.x86_64.rpm 2.9 MB/s | 236 kB 00:00 (56/210): tar-1.34-7.el9.x86_64.rpm 11 MB/s | 889 kB 00:00 (57/210): pcre2-syntax-10.40-6.el9.noarch.rpm 1.4 MB/s | 144 kB 00:00 (58/210): bzip2-1.0.8-10.el9_5.x86_64.rpm 776 kB/s | 60 kB 00:00 (59/210): bzip2-libs-1.0.8-10.el9_5.x86_64.rpm 557 kB/s | 42 kB 00:00 (60/210): libbrotli-1.0.9-7.el9_5.x86_64.rpm 4.2 MB/s | 316 kB 00:00 (61/210): p11-kit-0.25.3-3.el9_5.x86_64.rpm 6.7 MB/s | 536 kB 00:00 (62/210): alternatives-1.24-2.el9.x86_64.rpm 483 kB/s | 42 kB 00:00 (63/210): p11-kit-trust-0.25.3-3.el9_5.x86_64.r 1.4 MB/s | 144 kB 00:00 (64/210): coreutils-8.32-39.el9.x86_64.rpm 15 MB/s | 1.2 MB 00:00 (65/210): libblkid-2.37.4-21.el9.x86_64.rpm 1.4 MB/s | 109 kB 00:00 (66/210): coreutils-common-8.32-39.el9.x86_64.r 24 MB/s | 2.0 MB 00:00 (67/210): libfdisk-2.37.4-21.el9.x86_64.rpm 1.6 MB/s | 156 kB 00:00 (68/210): libmount-2.37.4-21.el9.x86_64.rpm 1.7 MB/s | 136 kB 00:00 (69/210): libselinux-3.6-3.el9.x86_64.rpm 811 kB/s | 88 kB 00:00 (70/210): libsmartcols-2.37.4-21.el9.x86_64.rpm 852 kB/s | 65 kB 00:00 (71/210): libsemanage-3.6-5.el9_6.x86_64.rpm 1.2 MB/s | 121 kB 00:00 (72/210): libtasn1-4.16.0-9.el9.x86_64.rpm 1.0 MB/s | 77 kB 00:00 (73/210): libtool-ltdl-2.4.6-46.el9.x86_64.rpm 497 kB/s | 37 kB 00:00 (74/210): libuuid-2.37.4-21.el9.x86_64.rpm 386 kB/s | 30 kB 00:00 (75/210): libzstd-1.5.5-1.el9.x86_64.rpm 3.7 MB/s | 297 kB 00:00 (76/210): util-linux-2.37.4-21.el9.x86_64.rpm 27 MB/s | 2.3 MB 00:00 (77/210): openldap-2.6.8-4.el9.x86_64.rpm 2.1 MB/s | 290 kB 00:00 (78/210): util-linux-core-2.37.4-21.el9.x86_64. 4.8 MB/s | 469 kB 00:00 (79/210): zstd-1.5.5-1.el9.x86_64.rpm 6.0 MB/s | 468 kB 00:00 (80/210): libdb-5.3.28-57.el9_6.x86_64.rpm 9.5 MB/s | 737 kB 00:00 (81/210): krb5-libs-1.21.1-8.el9_6.x86_64.rpm 8.2 MB/s | 766 kB 00:00 (82/210): elfutils-0.193-1.el9.x86_64.rpm 7.1 MB/s | 598 kB 00:00 (83/210): libarchive-3.5.3-6.el9_6.x86_64.rpm 4.0 MB/s | 387 kB 00:00 (84/210): libgcc-11.5.0-11.el9.x86_64.rpm 1.1 MB/s | 85 kB 00:00 (85/210): elfutils-libs-0.193-1.el9.x86_64.rpm 2.0 MB/s | 268 kB 00:00 (86/210): ncurses-libs-6.2-12.20210508.el9.x86_ 4.1 MB/s | 328 kB 00:00 (87/210): pam-1.5.1-26.el9_6.x86_64.rpm 7.2 MB/s | 622 kB 00:00 (88/210): rpm-build-libs-4.16.1.3-39.el9.x86_64 1.1 MB/s | 88 kB 00:00 (89/210): unzip-6.0-59.el9.x86_64.rpm 2.3 MB/s | 182 kB 00:00 (90/210): which-2.21-30.el9_6.x86_64.rpm 407 kB/s | 41 kB 00:00 (91/210): audit-libs-3.1.5-7.el9.x86_64.rpm 1.2 MB/s | 119 kB 00:00 (92/210): crypto-policies-20250905-1.git377cc42 1.1 MB/s | 90 kB 00:00 (93/210): cyrus-sasl-lib-2.1.27-22.el9.x86_64.r 9.2 MB/s | 768 kB 00:00 (94/210): curl-7.76.1-34.el9.x86_64.rpm 3.4 MB/s | 292 kB 00:00 (95/210): elfutils-debuginfod-client-0.193-1.el 592 kB/s | 44 kB 00:00 (96/210): elfutils-libelf-0.193-1.el9.x86_64.rp 2.5 MB/s | 205 kB 00:00 (97/210): elfutils-default-yama-scope-0.193-1.e 121 kB/s | 9.7 kB 00:00 (98/210): libcap-2.48-10.el9.x86_64.rpm 860 kB/s | 70 kB 00:00 (99/210): libcom_err-1.46.5-8.el9.x86_64.rpm 278 kB/s | 26 kB 00:00 (100/210): libcurl-7.76.1-34.el9.x86_64.rpm 2.9 MB/s | 283 kB 00:00 (101/210): libgomp-11.5.0-11.el9.x86_64.rpm 3.2 MB/s | 257 kB 00:00 (102/210): libsepol-3.6-3.el9.x86_64.rpm 3.7 MB/s | 331 kB 00:00 (103/210): ncurses-6.2-12.20210508.el9.x86_64.r 4.9 MB/s | 406 kB 00:00 (104/210): libstdc++-11.5.0-11.el9.x86_64.rpm 4.2 MB/s | 742 kB 00:00 (105/210): ncurses-base-6.2-12.20210508.el9.noa 1.1 MB/s | 96 kB 00:00 (106/210): openssl-fips-provider-3.0.7-8.el9.x8 90 kB/s | 9.2 kB 00:00 (107/210): openssl-fips-provider-so-3.0.7-8.el9 7.2 MB/s | 576 kB 00:00 (108/210): rpm-libs-4.16.1.3-39.el9.x86_64.rpm 4.0 MB/s | 307 kB 00:00 (109/210): rpm-4.16.1.3-39.el9.x86_64.rpm 3.4 MB/s | 535 kB 00:00 (110/210): shadow-utils-4.9-15.el9.x86_64.rpm 15 MB/s | 1.2 MB 00:00 (111/210): glibc-2.34-231.el9_7.2.x86_64.rpm 24 MB/s | 2.0 MB 00:00 (112/210): glibc-common-2.34-231.el9_7.2.x86_64 3.9 MB/s | 306 kB 00:00 (113/210): glibc-minimal-langpack-2.34-231.el9_ 293 kB/s | 22 kB 00:00 (114/210): glibc-gconv-extra-2.34-231.el9_7.2.x 18 MB/s | 1.7 MB 00:00 (115/210): sqlite-libs-3.34.1-9.el9_7.x86_64.rp 8.2 MB/s | 642 kB 00:00 (116/210): redhat-release-9.7-0.7.el9.x86_64.rp 558 kB/s | 53 kB 00:00 (117/210): openssl-3.5.1-4.el9_7.x86_64.rpm 19 MB/s | 1.5 MB 00:00 (118/210): openssl-libs-3.5.1-4.el9_7.x86_64.rp 28 MB/s | 2.3 MB 00:00 (119/210): ca-certificates-2025.2.80_v9.0.305-9 12 MB/s | 1.0 MB 00:00 (120/210): libxml2-2.9.13-14.el9_7.x86_64.rpm 7.5 MB/s | 747 kB 00:00 (121/210): systemd-libs-252-55.el9_7.7.x86_64.r 8.8 MB/s | 676 kB 00:00 (122/210): tzdata-2025c-1.el9.noarch.rpm 11 MB/s | 904 kB 00:00 (123/210): libssh-0.10.4-17.el9_7.x86_64.rpm 2.4 MB/s | 214 kB 00:00 (124/210): libssh-config-0.10.4-17.el9_7.noarch 99 kB/s | 8.1 kB 00:00 (125/210): binutils-2.35.2-67.el9_7.1.x86_64.rp 50 MB/s | 4.6 MB 00:00 (126/210): binutils-gold-2.35.2-67.el9_7.1.x86_ 9.1 MB/s | 734 kB 00:00 (127/210): ghc-srpm-macros-1.5.0-6.el9.noarch.r 110 kB/s | 9.0 kB 00:00 (128/210): lua-srpm-macros-1-6.el9.noarch.rpm 132 kB/s | 10 kB 00:00 (129/210): perl-Data-Dumper-2.174-462.el9.x86_6 766 kB/s | 59 kB 00:00 (130/210): perl-Encode-3.08-462.el9.x86_64.rpm 18 MB/s | 1.7 MB 00:00 (131/210): perl-Mozilla-CA-20200520-6.el9.noarc 166 kB/s | 14 kB 00:00 (132/210): perl-Pod-Simple-3.42-4.el9.noarch.rp 2.5 MB/s | 229 kB 00:00 (133/210): perl-Term-Cap-1.17-460.el9.noarch.rp 300 kB/s | 24 kB 00:00 (134/210): perl-Digest-MD5-2.58-4.el9.x86_64.rp 178 kB/s | 39 kB 00:00 (135/210): perl-Time-Local-1.300-7.el9.noarch.r 484 kB/s | 37 kB 00:00 (136/210): rust-srpm-macros-17-4.el9.noarch.rpm 143 kB/s | 11 kB 00:00 (137/210): perl-Pod-Escapes-1.07-460.el9.noarch 293 kB/s | 22 kB 00:00 (138/210): perl-podlators-4.14-460.el9.noarch.r 1.5 MB/s | 118 kB 00:00 (139/210): perl-Storable-3.21-460.el9.x86_64.rp 1.2 MB/s | 98 kB 00:00 (140/210): perl-Exporter-5.74-461.el9.noarch.rp 456 kB/s | 34 kB 00:00 (141/210): perl-File-Temp-0.231.100-4.el9.noarc 841 kB/s | 63 kB 00:00 (142/210): perl-Getopt-Long-2.52-4.el9.noarch.r 590 kB/s | 64 kB 00:00 (143/210): perl-MIME-Base64-3.16-4.el9.x86_64.r 389 kB/s | 34 kB 00:00 (144/210): perl-Text-Tabs+Wrap-2013.0523-460.el 335 kB/s | 25 kB 00:00 (145/210): perl-srpm-macros-1-41.el9.noarch.rpm 105 kB/s | 9.4 kB 00:00 (146/210): perl-parent-0.238-460.el9.noarch.rpm 162 kB/s | 16 kB 00:00 (147/210): openblas-srpm-macros-2-11.el9.noarch 110 kB/s | 8.6 kB 00:00 (148/210): perl-File-Path-2.18-4.el9.noarch.rpm 493 kB/s | 38 kB 00:00 (149/210): perl-Digest-1.19-4.el9.noarch.rpm 274 kB/s | 29 kB 00:00 (150/210): perl-Pod-Usage-2.01-4.el9.noarch.rpm 517 kB/s | 43 kB 00:00 (151/210): perl-Socket-2.031-4.el9.x86_64.rpm 775 kB/s | 58 kB 00:00 (152/210): perl-IO-Socket-IP-0.41-5.el9.noarch. 256 kB/s | 45 kB 00:00 (153/210): perl-Term-ANSIColor-5.01-461.el9.noa 677 kB/s | 51 kB 00:00 (154/210): perl-Text-ParseWords-3.30-460.el9.no 216 kB/s | 18 kB 00:00 (155/210): perl-constant-1.33-461.el9.noarch.rp 336 kB/s | 25 kB 00:00 (156/210): perl-URI-5.09-3.el9.noarch.rpm 968 kB/s | 125 kB 00:00 (157/210): fonts-srpm-macros-2.0.5-7.el9.1.noar 387 kB/s | 29 kB 00:00 (158/210): ocaml-srpm-macros-6-6.el9.noarch.rpm 118 kB/s | 9.1 kB 00:00 (159/210): patch-2.7.6-16.el9.x86_64.rpm 1.4 MB/s | 130 kB 00:00 (160/210): perl-libnet-3.13-4.el9.noarch.rpm 1.7 MB/s | 134 kB 00:00 (161/210): perl-Pod-Perldoc-3.28.01-461.el9.noa 571 kB/s | 92 kB 00:00 (162/210): perl-Carp-1.50-460.el9.noarch.rpm 409 kB/s | 31 kB 00:00 (163/210): perl-PathTools-3.78-461.el9.x86_64.r 1.2 MB/s | 92 kB 00:00 (164/210): perl-HTTP-Tiny-0.076-462.el9.noarch. 757 kB/s | 57 kB 00:00 (165/210): qt5-srpm-macros-5.15.9-1.el9.noarch. 111 kB/s | 9.1 kB 00:00 (166/210): python-srpm-macros-3.9-54.el9.noarch 233 kB/s | 18 kB 00:00 (167/210): perl-IO-Socket-SSL-2.073-2.el9.noarc 2.9 MB/s | 221 kB 00:00 (168/210): perl-Scalar-List-Utils-1.56-462.el9. 831 kB/s | 75 kB 00:00 (169/210): pyproject-srpm-macros-1.16.2-1.el9.n 189 kB/s | 14 kB 00:00 (170/210): perl-B-1.80-481.1.el9_6.x86_64.rpm 2.2 MB/s | 180 kB 00:00 (171/210): perl-AutoLoader-5.74-481.1.el9_6.noa 186 kB/s | 21 kB 00:00 (172/210): perl-Class-Struct-0.66-481.1.el9_6.n 287 kB/s | 22 kB 00:00 (173/210): perl-Errno-1.30-481.1.el9_6.x86_64.r 189 kB/s | 15 kB 00:00 (174/210): perl-Fcntl-1.13-481.1.el9_6.x86_64.r 246 kB/s | 20 kB 00:00 (175/210): perl-File-Basename-2.85-481.1.el9_6. 220 kB/s | 17 kB 00:00 (176/210): perl-File-stat-1.09-481.1.el9_6.noar 224 kB/s | 17 kB 00:00 (177/210): perl-Getopt-Std-1.12-481.1.el9_6.noa 192 kB/s | 15 kB 00:00 (178/210): perl-IO-1.43-481.1.el9_6.x86_64.rpm 1.0 MB/s | 88 kB 00:00 (179/210): perl-POSIX-1.94-481.1.el9_6.x86_64.r 1.2 MB/s | 96 kB 00:00 (180/210): perl-FileHandle-2.03-481.1.el9_6.noa 65 kB/s | 15 kB 00:00 (181/210): perl-IPC-Open3-1.21-481.1.el9_6.noar 152 kB/s | 22 kB 00:00 (182/210): perl-base-2.27-481.1.el9_6.noarch.rp 202 kB/s | 16 kB 00:00 (183/210): perl-SelectSaver-1.02-481.1.el9_6.no 97 kB/s | 11 kB 00:00 (184/210): perl-if-0.60.800-481.1.el9_6.noarch. 168 kB/s | 14 kB 00:00 (185/210): perl-interpreter-5.32.1-481.1.el9_6. 935 kB/s | 70 kB 00:00 (186/210): perl-libs-5.32.1-481.1.el9_6.x86_64. 27 MB/s | 2.2 MB 00:00 (187/210): perl-Symbol-1.08-481.1.el9_6.noarch. 57 kB/s | 14 kB 00:00 (188/210): perl-mro-1.23-481.1.el9_6.x86_64.rpm 239 kB/s | 28 kB 00:00 (189/210): perl-overloading-0.02-481.1.el9_6.no 165 kB/s | 12 kB 00:00 (190/210): perl-overload-1.31-481.1.el9_6.noarc 587 kB/s | 45 kB 00:00 (191/210): perl-subs-1.03-481.1.el9_6.noarch.rp 144 kB/s | 11 kB 00:00 (192/210): dwz-0.16-1.el9.x86_64.rpm 1.7 MB/s | 134 kB 00:00 (193/210): perl-vars-1.05-481.1.el9_6.noarch.rp 126 kB/s | 13 kB 00:00 (194/210): debugedit-5.0-11.el9.x86_64.rpm 780 kB/s | 77 kB 00:00 (195/210): efi-srpm-macros-6-4.el9.noarch.rpm 275 kB/s | 21 kB 00:00 (196/210): gdb-minimal-16.3-2.el9.x86_64.rpm 37 MB/s | 4.4 MB 00:00 (197/210): kernel-srpm-macros-1.0-14.el9.noarch 181 kB/s | 14 kB 00:00 (198/210): perl-Net-SSLeay-1.94-3.el9.x86_64.rp 5.0 MB/s | 414 kB 00:00 (199/210): redhat-rpm-config-210-1.el9.noarch.r 945 kB/s | 70 kB 00:00 (200/210): ansible-srpm-macros-1-16.el9.noarch. 1.7 MB/s | 21 kB 00:00 (201/210): rpm-build-4.16.1.3-39.el9.x86_64.rpm 865 kB/s | 66 kB 00:00 (202/210): epel-rpm-macros-9-17.el9.noarch.rpm 7.2 MB/s | 15 kB 00:00 (203/210): forge-srpm-macros-0.4.0-1.el9.noarch 7.2 MB/s | 19 kB 00:00 (204/210): fpc-srpm-macros-1.3-7.el9.noarch.rpm 2.1 MB/s | 7.5 kB 00:00 (205/210): ghc-srpm-macros-epel-1.9.1-1.el9.noa 2.9 MB/s | 7.5 kB 00:00 (206/210): go-srpm-macros-3.6.0-12.el9_7.noarch 352 kB/s | 27 kB 00:00 (207/210): go-srpm-macros-epel-3.8.0-1.el9.noar 11 MB/s | 26 kB 00:00 (208/210): qt6-srpm-macros-6.6.2-1.el9.noarch.r 5.1 MB/s | 8.7 kB 00:00 (209/210): rust-srpm-macros-epel-26.3-1.el9.noa 5.5 MB/s | 10 kB 00:00 (210/210): rpmautospec-rpm-macros-0.8.1-11.el9. 3.3 MB/s | 11 kB 00:00 -------------------------------------------------------------------------------- Total 11 MB/s | 70 MB 00:06 Red Hat Enterprise Linux - BaseOS 3.5 MB/s | 3.6 kB 00:00 Importing GPG key 0xFD431D51: Userid : "Red Hat, Inc. (release key 2) " Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51 From : /usr/share/distribution-gpg-keys/redhat/RPM-GPG-KEY-redhat9-release Key imported successfully Importing GPG key 0x5A6340B3: Userid : "Red Hat, Inc. (auxiliary key 3) " Fingerprint: 7E46 2425 8C40 6535 D56D 6F13 5054 E4A4 5A63 40B3 From : /usr/share/distribution-gpg-keys/redhat/RPM-GPG-KEY-redhat9-release Key imported successfully Extra Packages for Enterprise Linux 9 - x86_64 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x3228467C: Userid : "Fedora (epel9) " Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C From : /usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-9 Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: filesystem-3.16-5.el9.x86_64 1/1 Preparing : 1/1 Installing : rust-srpm-macros-17-4.el9.noarch 1/210 Installing : redhat-release-9.7-0.7.el9.x86_64 2/210 Installing : setup-2.13.7-10.el9.noarch 3/210 warning: /etc/hosts created as /etc/hosts.rpmnew Running scriptlet: setup-2.13.7-10.el9.noarch 3/210 Installing : filesystem-3.16-5.el9.x86_64 4/210 Installing : basesystem-11-13.el9.noarch 5/210 Installing : rust-srpm-macros-epel-26.3-1.el9.noarch 6/210 Installing : qt6-srpm-macros-6.6.2-1.el9.noarch 7/210 Installing : ghc-srpm-macros-epel-1.9.1-1.el9.noarch 8/210 Installing : fpc-srpm-macros-1.3-7.el9.noarch 9/210 Installing : ansible-srpm-macros-1-16.el9.noarch 10/210 Installing : qt5-srpm-macros-5.15.9-1.el9.noarch 11/210 Installing : ocaml-srpm-macros-6-6.el9.noarch 12/210 Installing : openblas-srpm-macros-2-11.el9.noarch 13/210 Installing : perl-srpm-macros-1-41.el9.noarch 14/210 Installing : ghc-srpm-macros-1.5.0-6.el9.noarch 15/210 Installing : libssh-config-0.10.4-17.el9_7.noarch 16/210 Installing : tzdata-2025c-1.el9.noarch 17/210 Installing : ncurses-base-6.2-12.20210508.el9.noarch 18/210 Installing : ncurses-libs-6.2-12.20210508.el9.x86_64 19/210 Installing : bash-5.1.8-9.el9.x86_64 20/210 Running scriptlet: bash-5.1.8-9.el9.x86_64 20/210 Installing : libgcc-11.5.0-11.el9.x86_64 21/210 Running scriptlet: libgcc-11.5.0-11.el9.x86_64 21/210 Installing : glibc-common-2.34-231.el9_7.2.x86_64 22/210 Installing : glibc-gconv-extra-2.34-231.el9_7.2.x86_64 23/210 Running scriptlet: glibc-gconv-extra-2.34-231.el9_7.2.x86_64 23/210 Installing : glibc-minimal-langpack-2.34-231.el9_7.2.x86_64 24/210 Running scriptlet: glibc-2.34-231.el9_7.2.x86_64 25/210 Installing : glibc-2.34-231.el9_7.2.x86_64 25/210 Running scriptlet: glibc-2.34-231.el9_7.2.x86_64 25/210 Installing : zlib-1.2.11-40.el9.x86_64 26/210 Installing : xz-libs-5.2.5-8.el9_0.x86_64 27/210 Installing : bzip2-libs-1.0.8-10.el9_5.x86_64 28/210 Installing : libzstd-1.5.5-1.el9.x86_64 29/210 Installing : elfutils-libelf-0.193-1.el9.x86_64 30/210 Installing : libxcrypt-4.4.18-3.el9.x86_64 31/210 Installing : libstdc++-11.5.0-11.el9.x86_64 32/210 Installing : libuuid-2.37.4-21.el9.x86_64 33/210 Installing : libattr-2.5.1-3.el9.x86_64 34/210 Installing : libacl-2.3.1-4.el9.x86_64 35/210 Installing : popt-1.18-8.el9.x86_64 36/210 Installing : gmp-1:6.2.0-13.el9.x86_64 37/210 Installing : libcap-2.48-10.el9.x86_64 38/210 Installing : lz4-libs-1.9.3-5.el9.x86_64 39/210 Installing : readline-8.1-4.el9.x86_64 40/210 Installing : libcom_err-1.46.5-8.el9.x86_64 41/210 Installing : crypto-policies-20250905-1.git377cc42.el9_7.noar 42/210 Running scriptlet: crypto-policies-20250905-1.git377cc42.el9_7.noar 42/210 Installing : mpfr-4.1.0-7.el9.x86_64 43/210 Installing : dwz-0.16-1.el9.x86_64 44/210 Installing : unzip-6.0-59.el9.x86_64 45/210 Installing : file-libs-5.39-16.el9.x86_64 46/210 Installing : file-5.39-16.el9.x86_64 47/210 Installing : sqlite-libs-3.34.1-9.el9_7.x86_64 48/210 Installing : libcap-ng-0.8.2-7.el9.x86_64 49/210 Installing : audit-libs-3.1.5-7.el9.x86_64 50/210 Installing : libsigsegv-2.13-4.el9.x86_64 51/210 Installing : gawk-5.1.0-6.el9.x86_64 52/210 Installing : libunistring-0.9.10-15.el9.x86_64 53/210 Installing : libidn2-2.3.0-7.el9.x86_64 54/210 Installing : libffi-3.4.2-8.el9.x86_64 55/210 Installing : lua-libs-5.4.4-4.el9.x86_64 56/210 Installing : alternatives-1.24-2.el9.x86_64 57/210 Installing : libsmartcols-2.37.4-21.el9.x86_64 58/210 Installing : libtasn1-4.16.0-9.el9.x86_64 59/210 Installing : p11-kit-0.25.3-3.el9_5.x86_64 60/210 Installing : libsepol-3.6-3.el9.x86_64 61/210 Installing : p11-kit-trust-0.25.3-3.el9_5.x86_64 62/210 Running scriptlet: p11-kit-trust-0.25.3-3.el9_5.x86_64 62/210 Installing : zip-3.0-35.el9.x86_64 63/210 Installing : zstd-1.5.5-1.el9.x86_64 64/210 Running scriptlet: groff-base-1.22.4-10.el9.x86_64 65/210 Installing : groff-base-1.22.4-10.el9.x86_64 65/210 Running scriptlet: groff-base-1.22.4-10.el9.x86_64 65/210 Installing : bzip2-1.0.8-10.el9_5.x86_64 66/210 Installing : libxml2-2.9.13-14.el9_7.x86_64 67/210 Installing : info-6.7-15.el9.x86_64 68/210 Installing : ed-1.14.2-12.el9.x86_64 69/210 Installing : cpio-2.13-16.el9.x86_64 70/210 Installing : json-c-0.14-11.el9.x86_64 71/210 Installing : libgpg-error-1.42-5.el9.x86_64 72/210 Installing : libgcrypt-1.10.0-11.el9.x86_64 73/210 Installing : libverto-0.3.2-3.el9.x86_64 74/210 Installing : diffutils-3.7-12.el9.x86_64 75/210 Installing : keyutils-libs-1.6.3-1.el9.x86_64 76/210 Installing : libpkgconf-1.7.3-10.el9.x86_64 77/210 Installing : pkgconf-1.7.3-10.el9.x86_64 78/210 Installing : gdbm-libs-1:1.23-1.el9.x86_64 79/210 Installing : libeconf-0.4.1-4.el9.x86_64 80/210 Installing : libnghttp2-1.43.0-6.el9.x86_64 81/210 Installing : pcre-8.44-4.el9.x86_64 82/210 Installing : grep-3.6-5.el9.x86_64 83/210 Installing : xz-5.2.5-8.el9_0.x86_64 84/210 Installing : libbrotli-1.0.9-7.el9_5.x86_64 85/210 Installing : libtool-ltdl-2.4.6-46.el9.x86_64 86/210 Installing : libdb-5.3.28-57.el9_6.x86_64 87/210 Installing : libgomp-11.5.0-11.el9.x86_64 88/210 Installing : ncurses-6.2-12.20210508.el9.x86_64 89/210 Installing : elfutils-default-yama-scope-0.193-1.el9.noarch 90/210 Running scriptlet: elfutils-default-yama-scope-0.193-1.el9.noarch 90/210 Installing : elfutils-libs-0.193-1.el9.x86_64 91/210 Installing : coreutils-common-8.32-39.el9.x86_64 92/210 Installing : pcre2-syntax-10.40-6.el9.noarch 93/210 Installing : pcre2-10.40-6.el9.x86_64 94/210 Installing : libselinux-3.6-3.el9.x86_64 95/210 Installing : sed-4.8-9.el9.x86_64 96/210 Installing : findutils-1:4.8.0-7.el9.x86_64 97/210 Installing : openssl-fips-provider-so-3.0.7-8.el9.x86_64 98/210 Installing : openssl-fips-provider-3.0.7-8.el9.x86_64 99/210 Installing : openssl-libs-1:3.5.1-4.el9_7.x86_64 100/210 Installing : coreutils-8.32-39.el9.x86_64 101/210 Running scriptlet: ca-certificates-2025.2.80_v9.0.305-91.el9.noarch 102/210 Installing : ca-certificates-2025.2.80_v9.0.305-91.el9.noarch 102/210 Running scriptlet: ca-certificates-2025.2.80_v9.0.305-91.el9.noarch 102/210 Installing : libblkid-2.37.4-21.el9.x86_64 103/210 Running scriptlet: libblkid-2.37.4-21.el9.x86_64 103/210 Installing : krb5-libs-1.21.1-8.el9_6.x86_64 104/210 Installing : libmount-2.37.4-21.el9.x86_64 105/210 Installing : gzip-1.12-1.el9.x86_64 106/210 Installing : cracklib-2.9.6-27.el9.x86_64 107/210 Installing : systemd-libs-252-55.el9_7.7.x86_64 108/210 Running scriptlet: systemd-libs-252-55.el9_7.7.x86_64 108/210 Installing : libarchive-3.5.3-6.el9_6.x86_64 109/210 Installing : util-linux-core-2.37.4-21.el9.x86_64 110/210 Running scriptlet: util-linux-core-2.37.4-21.el9.x86_64 110/210 Installing : cracklib-dicts-2.9.6-27.el9.x86_64 111/210 Installing : cyrus-sasl-lib-2.1.27-22.el9.x86_64 112/210 Installing : libssh-0.10.4-17.el9_7.x86_64 113/210 Installing : libfdisk-2.37.4-21.el9.x86_64 114/210 Installing : perl-Digest-1.19-4.el9.noarch 115/210 Installing : perl-Digest-MD5-2.58-4.el9.x86_64 116/210 Installing : perl-B-1.80-481.1.el9_6.x86_64 117/210 Installing : perl-FileHandle-2.03-481.1.el9_6.noarch 118/210 Installing : perl-Data-Dumper-2.174-462.el9.x86_64 119/210 Installing : perl-libnet-3.13-4.el9.noarch 120/210 Installing : perl-AutoLoader-5.74-481.1.el9_6.noarch 121/210 Installing : perl-base-2.27-481.1.el9_6.noarch 122/210 Installing : perl-URI-5.09-3.el9.noarch 123/210 Installing : perl-Time-Local-2:1.300-7.el9.noarch 124/210 Installing : perl-Mozilla-CA-20200520-6.el9.noarch 125/210 Installing : perl-if-0.60.800-481.1.el9_6.noarch 126/210 Installing : perl-IO-Socket-IP-0.41-5.el9.noarch 127/210 Installing : perl-Pod-Escapes-1:1.07-460.el9.noarch 128/210 Installing : perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch 129/210 Installing : perl-File-Path-2.18-4.el9.noarch 130/210 Installing : perl-IO-Socket-SSL-2.073-2.el9.noarch 131/210 Installing : perl-Net-SSLeay-1.94-3.el9.x86_64 132/210 Installing : perl-Term-ANSIColor-5.01-461.el9.noarch 133/210 Installing : perl-Class-Struct-0.66-481.1.el9_6.noarch 134/210 Installing : perl-POSIX-1.94-481.1.el9_6.x86_64 135/210 Installing : perl-IPC-Open3-1.21-481.1.el9_6.noarch 136/210 Installing : perl-subs-1.03-481.1.el9_6.noarch 137/210 Installing : perl-Term-Cap-1.17-460.el9.noarch 138/210 Installing : perl-File-Temp-1:0.231.100-4.el9.noarch 139/210 Installing : perl-Pod-Simple-1:3.42-4.el9.noarch 140/210 Installing : perl-HTTP-Tiny-0.076-462.el9.noarch 141/210 Installing : perl-Socket-4:2.031-4.el9.x86_64 142/210 Installing : perl-SelectSaver-1.02-481.1.el9_6.noarch 143/210 Installing : perl-Symbol-1.08-481.1.el9_6.noarch 144/210 Installing : perl-File-stat-1.09-481.1.el9_6.noarch 145/210 Installing : perl-podlators-1:4.14-460.el9.noarch 146/210 Installing : perl-Pod-Perldoc-3.28.01-461.el9.noarch 147/210 Installing : perl-Text-ParseWords-3.30-460.el9.noarch 148/210 Installing : perl-Fcntl-1.13-481.1.el9_6.x86_64 149/210 Installing : perl-mro-1.23-481.1.el9_6.x86_64 150/210 Installing : perl-IO-1.43-481.1.el9_6.x86_64 151/210 Installing : perl-overloading-0.02-481.1.el9_6.noarch 152/210 Installing : perl-Pod-Usage-4:2.01-4.el9.noarch 153/210 Installing : perl-parent-1:0.238-460.el9.noarch 154/210 Installing : perl-MIME-Base64-3.16-4.el9.x86_64 155/210 Installing : perl-constant-1.33-461.el9.noarch 156/210 Installing : perl-Scalar-List-Utils-4:1.56-462.el9.x86_64 157/210 Installing : perl-Errno-1.30-481.1.el9_6.x86_64 158/210 Installing : perl-File-Basename-2.85-481.1.el9_6.noarch 159/210 Installing : perl-Getopt-Std-1.12-481.1.el9_6.noarch 160/210 Installing : perl-Storable-1:3.21-460.el9.x86_64 161/210 Installing : perl-overload-1.31-481.1.el9_6.noarch 162/210 Installing : perl-vars-1.05-481.1.el9_6.noarch 163/210 Installing : perl-Getopt-Long-1:2.52-4.el9.noarch 164/210 Installing : perl-Exporter-5.74-461.el9.noarch 165/210 Installing : perl-Carp-1.50-460.el9.noarch 166/210 Installing : perl-PathTools-3.78-461.el9.x86_64 167/210 Installing : perl-Encode-4:3.08-462.el9.x86_64 168/210 Installing : perl-libs-4:5.32.1-481.1.el9_6.x86_64 169/210 Installing : perl-interpreter-4:5.32.1-481.1.el9_6.x86_64 170/210 Installing : kernel-srpm-macros-1.0-14.el9.noarch 171/210 Installing : openssl-1:3.5.1-4.el9_7.x86_64 172/210 Installing : libpwquality-1.4.4-8.el9.x86_64 173/210 Installing : pam-1.5.1-26.el9_6.x86_64 174/210 Installing : libevent-2.1.12-8.el9_4.x86_64 175/210 Installing : tar-2:1.34-7.el9.x86_64 176/210 Installing : libsemanage-3.6-5.el9_6.x86_64 177/210 Installing : shadow-utils-2:4.9-15.el9.x86_64 178/210 Running scriptlet: libutempter-1.2.1-6.el9.x86_64 179/210 Installing : libutempter-1.2.1-6.el9.x86_64 179/210 Installing : openldap-2.6.8-4.el9.x86_64 180/210 Installing : patch-2.7.6-16.el9.x86_64 181/210 Installing : pkgconf-m4-1.7.3-10.el9.noarch 182/210 Installing : pkgconf-pkg-config-1.7.3-10.el9.x86_64 183/210 Installing : publicsuffix-list-dafsa-20210518-3.el9.noarch 184/210 Installing : libpsl-0.21.1-5.el9.x86_64 185/210 Installing : libcurl-7.76.1-34.el9.x86_64 186/210 Installing : elfutils-debuginfod-client-0.193-1.el9.x86_64 187/210 Installing : binutils-2.35.2-67.el9_7.1.x86_64 188/210 Running scriptlet: binutils-2.35.2-67.el9_7.1.x86_64 188/210 Installing : binutils-gold-2.35.2-67.el9_7.1.x86_64 189/210 Installing : elfutils-0.193-1.el9.x86_64 190/210 Installing : gdb-minimal-16.3-2.el9.x86_64 191/210 Installing : debugedit-5.0-11.el9.x86_64 192/210 Installing : curl-7.76.1-34.el9.x86_64 193/210 Installing : rpm-libs-4.16.1.3-39.el9.x86_64 194/210 Installing : rpm-4.16.1.3-39.el9.x86_64 195/210 Installing : lua-srpm-macros-1-6.el9.noarch 196/210 Installing : efi-srpm-macros-6-4.el9.noarch 197/210 Installing : rpmautospec-rpm-macros-0.8.1-11.el9.noarch 198/210 Installing : rpm-build-libs-4.16.1.3-39.el9.x86_64 199/210 Installing : fonts-srpm-macros-1:2.0.5-7.el9.1.noarch 200/210 Installing : python-srpm-macros-3.9-54.el9.noarch 201/210 Installing : go-srpm-macros-3.6.0-12.el9_7.noarch 202/210 Installing : redhat-rpm-config-210-1.el9.noarch 203/210 Installing : rpm-build-4.16.1.3-39.el9.x86_64 204/210 Installing : pyproject-srpm-macros-1.16.2-1.el9.noarch 205/210 Installing : forge-srpm-macros-0.4.0-1.el9.noarch 206/210 Installing : go-srpm-macros-epel-3.8.0-1.el9.noarch 207/210 Installing : epel-rpm-macros-9-17.el9.noarch 208/210 Installing : util-linux-2.37.4-21.el9.x86_64 209/210 Installing : which-2.21-30.el9_6.x86_64 210/210 Running scriptlet: filesystem-3.16-5.el9.x86_64 210/210 Running scriptlet: ca-certificates-2025.2.80_v9.0.305-91.el9.noarch 210/210 Running scriptlet: rpm-4.16.1.3-39.el9.x86_64 210/210 Running scriptlet: which-2.21-30.el9_6.x86_64 210/210 Verifying : basesystem-11-13.el9.noarch 1/210 Verifying : cpio-2.13-16.el9.x86_64 2/210 Verifying : cracklib-2.9.6-27.el9.x86_64 3/210 Verifying : ed-1.14.2-12.el9.x86_64 4/210 Verifying : grep-3.6-5.el9.x86_64 5/210 Verifying : groff-base-1.22.4-10.el9.x86_64 6/210 Verifying : info-6.7-15.el9.x86_64 7/210 Verifying : json-c-0.14-11.el9.x86_64 8/210 Verifying : libattr-2.5.1-3.el9.x86_64 9/210 Verifying : libcap-ng-0.8.2-7.el9.x86_64 10/210 Verifying : libgpg-error-1.42-5.el9.x86_64 11/210 Verifying : libidn2-2.3.0-7.el9.x86_64 12/210 Verifying : libpsl-0.21.1-5.el9.x86_64 13/210 Verifying : libpwquality-1.4.4-8.el9.x86_64 14/210 Verifying : libsigsegv-2.13-4.el9.x86_64 15/210 Verifying : libunistring-0.9.10-15.el9.x86_64 16/210 Verifying : libutempter-1.2.1-6.el9.x86_64 17/210 Verifying : libverto-0.3.2-3.el9.x86_64 18/210 Verifying : libxcrypt-4.4.18-3.el9.x86_64 19/210 Verifying : lz4-libs-1.9.3-5.el9.x86_64 20/210 Verifying : mpfr-4.1.0-7.el9.x86_64 21/210 Verifying : popt-1.18-8.el9.x86_64 22/210 Verifying : publicsuffix-list-dafsa-20210518-3.el9.noarch 23/210 Verifying : readline-8.1-4.el9.x86_64 24/210 Verifying : sed-4.8-9.el9.x86_64 25/210 Verifying : cracklib-dicts-2.9.6-27.el9.x86_64 26/210 Verifying : diffutils-3.7-12.el9.x86_64 27/210 Verifying : gawk-5.1.0-6.el9.x86_64 28/210 Verifying : xz-5.2.5-8.el9_0.x86_64 29/210 Verifying : xz-libs-5.2.5-8.el9_0.x86_64 30/210 Verifying : gzip-1.12-1.el9.x86_64 31/210 Verifying : keyutils-libs-1.6.3-1.el9.x86_64 32/210 Verifying : libpkgconf-1.7.3-10.el9.x86_64 33/210 Verifying : pkgconf-1.7.3-10.el9.x86_64 34/210 Verifying : pkgconf-m4-1.7.3-10.el9.noarch 35/210 Verifying : pkgconf-pkg-config-1.7.3-10.el9.x86_64 36/210 Verifying : zip-3.0-35.el9.x86_64 37/210 Verifying : gmp-1:6.2.0-13.el9.x86_64 38/210 Verifying : libffi-3.4.2-8.el9.x86_64 39/210 Verifying : lua-libs-5.4.4-4.el9.x86_64 40/210 Verifying : zlib-1.2.11-40.el9.x86_64 41/210 Verifying : bash-5.1.8-9.el9.x86_64 42/210 Verifying : file-5.39-16.el9.x86_64 43/210 Verifying : file-libs-5.39-16.el9.x86_64 44/210 Verifying : libacl-2.3.1-4.el9.x86_64 45/210 Verifying : setup-2.13.7-10.el9.noarch 46/210 Verifying : libevent-2.1.12-8.el9_4.x86_64 47/210 Verifying : filesystem-3.16-5.el9.x86_64 48/210 Verifying : findutils-1:4.8.0-7.el9.x86_64 49/210 Verifying : gdbm-libs-1:1.23-1.el9.x86_64 50/210 Verifying : libeconf-0.4.1-4.el9.x86_64 51/210 Verifying : libgcrypt-1.10.0-11.el9.x86_64 52/210 Verifying : libnghttp2-1.43.0-6.el9.x86_64 53/210 Verifying : pcre-8.44-4.el9.x86_64 54/210 Verifying : pcre2-10.40-6.el9.x86_64 55/210 Verifying : pcre2-syntax-10.40-6.el9.noarch 56/210 Verifying : tar-2:1.34-7.el9.x86_64 57/210 Verifying : bzip2-1.0.8-10.el9_5.x86_64 58/210 Verifying : bzip2-libs-1.0.8-10.el9_5.x86_64 59/210 Verifying : libbrotli-1.0.9-7.el9_5.x86_64 60/210 Verifying : p11-kit-0.25.3-3.el9_5.x86_64 61/210 Verifying : p11-kit-trust-0.25.3-3.el9_5.x86_64 62/210 Verifying : alternatives-1.24-2.el9.x86_64 63/210 Verifying : coreutils-8.32-39.el9.x86_64 64/210 Verifying : coreutils-common-8.32-39.el9.x86_64 65/210 Verifying : libblkid-2.37.4-21.el9.x86_64 66/210 Verifying : libfdisk-2.37.4-21.el9.x86_64 67/210 Verifying : libmount-2.37.4-21.el9.x86_64 68/210 Verifying : libselinux-3.6-3.el9.x86_64 69/210 Verifying : libsemanage-3.6-5.el9_6.x86_64 70/210 Verifying : libsmartcols-2.37.4-21.el9.x86_64 71/210 Verifying : libtasn1-4.16.0-9.el9.x86_64 72/210 Verifying : libtool-ltdl-2.4.6-46.el9.x86_64 73/210 Verifying : libuuid-2.37.4-21.el9.x86_64 74/210 Verifying : libzstd-1.5.5-1.el9.x86_64 75/210 Verifying : openldap-2.6.8-4.el9.x86_64 76/210 Verifying : util-linux-2.37.4-21.el9.x86_64 77/210 Verifying : util-linux-core-2.37.4-21.el9.x86_64 78/210 Verifying : zstd-1.5.5-1.el9.x86_64 79/210 Verifying : krb5-libs-1.21.1-8.el9_6.x86_64 80/210 Verifying : libdb-5.3.28-57.el9_6.x86_64 81/210 Verifying : elfutils-0.193-1.el9.x86_64 82/210 Verifying : elfutils-libs-0.193-1.el9.x86_64 83/210 Verifying : libarchive-3.5.3-6.el9_6.x86_64 84/210 Verifying : libgcc-11.5.0-11.el9.x86_64 85/210 Verifying : ncurses-libs-6.2-12.20210508.el9.x86_64 86/210 Verifying : pam-1.5.1-26.el9_6.x86_64 87/210 Verifying : rpm-build-libs-4.16.1.3-39.el9.x86_64 88/210 Verifying : unzip-6.0-59.el9.x86_64 89/210 Verifying : which-2.21-30.el9_6.x86_64 90/210 Verifying : audit-libs-3.1.5-7.el9.x86_64 91/210 Verifying : crypto-policies-20250905-1.git377cc42.el9_7.noar 92/210 Verifying : curl-7.76.1-34.el9.x86_64 93/210 Verifying : cyrus-sasl-lib-2.1.27-22.el9.x86_64 94/210 Verifying : elfutils-debuginfod-client-0.193-1.el9.x86_64 95/210 Verifying : elfutils-default-yama-scope-0.193-1.el9.noarch 96/210 Verifying : elfutils-libelf-0.193-1.el9.x86_64 97/210 Verifying : libcap-2.48-10.el9.x86_64 98/210 Verifying : libcom_err-1.46.5-8.el9.x86_64 99/210 Verifying : libcurl-7.76.1-34.el9.x86_64 100/210 Verifying : libgomp-11.5.0-11.el9.x86_64 101/210 Verifying : libsepol-3.6-3.el9.x86_64 102/210 Verifying : libstdc++-11.5.0-11.el9.x86_64 103/210 Verifying : ncurses-6.2-12.20210508.el9.x86_64 104/210 Verifying : ncurses-base-6.2-12.20210508.el9.noarch 105/210 Verifying : openssl-fips-provider-3.0.7-8.el9.x86_64 106/210 Verifying : openssl-fips-provider-so-3.0.7-8.el9.x86_64 107/210 Verifying : rpm-4.16.1.3-39.el9.x86_64 108/210 Verifying : rpm-libs-4.16.1.3-39.el9.x86_64 109/210 Verifying : shadow-utils-2:4.9-15.el9.x86_64 110/210 Verifying : glibc-2.34-231.el9_7.2.x86_64 111/210 Verifying : glibc-common-2.34-231.el9_7.2.x86_64 112/210 Verifying : glibc-gconv-extra-2.34-231.el9_7.2.x86_64 113/210 Verifying : glibc-minimal-langpack-2.34-231.el9_7.2.x86_64 114/210 Verifying : redhat-release-9.7-0.7.el9.x86_64 115/210 Verifying : sqlite-libs-3.34.1-9.el9_7.x86_64 116/210 Verifying : openssl-1:3.5.1-4.el9_7.x86_64 117/210 Verifying : openssl-libs-1:3.5.1-4.el9_7.x86_64 118/210 Verifying : ca-certificates-2025.2.80_v9.0.305-91.el9.noarch 119/210 Verifying : libxml2-2.9.13-14.el9_7.x86_64 120/210 Verifying : systemd-libs-252-55.el9_7.7.x86_64 121/210 Verifying : tzdata-2025c-1.el9.noarch 122/210 Verifying : libssh-0.10.4-17.el9_7.x86_64 123/210 Verifying : libssh-config-0.10.4-17.el9_7.noarch 124/210 Verifying : binutils-2.35.2-67.el9_7.1.x86_64 125/210 Verifying : binutils-gold-2.35.2-67.el9_7.1.x86_64 126/210 Verifying : ghc-srpm-macros-1.5.0-6.el9.noarch 127/210 Verifying : lua-srpm-macros-1-6.el9.noarch 128/210 Verifying : perl-Data-Dumper-2.174-462.el9.x86_64 129/210 Verifying : perl-Digest-MD5-2.58-4.el9.x86_64 130/210 Verifying : perl-Encode-4:3.08-462.el9.x86_64 131/210 Verifying : perl-Mozilla-CA-20200520-6.el9.noarch 132/210 Verifying : perl-Pod-Simple-1:3.42-4.el9.noarch 133/210 Verifying : perl-Term-Cap-1.17-460.el9.noarch 134/210 Verifying : perl-Time-Local-2:1.300-7.el9.noarch 135/210 Verifying : rust-srpm-macros-17-4.el9.noarch 136/210 Verifying : perl-Pod-Escapes-1:1.07-460.el9.noarch 137/210 Verifying : perl-Storable-1:3.21-460.el9.x86_64 138/210 Verifying : perl-podlators-1:4.14-460.el9.noarch 139/210 Verifying : perl-Exporter-5.74-461.el9.noarch 140/210 Verifying : perl-File-Temp-1:0.231.100-4.el9.noarch 141/210 Verifying : perl-Getopt-Long-1:2.52-4.el9.noarch 142/210 Verifying : perl-MIME-Base64-3.16-4.el9.x86_64 143/210 Verifying : perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch 144/210 Verifying : perl-parent-1:0.238-460.el9.noarch 145/210 Verifying : perl-srpm-macros-1-41.el9.noarch 146/210 Verifying : openblas-srpm-macros-2-11.el9.noarch 147/210 Verifying : perl-Digest-1.19-4.el9.noarch 148/210 Verifying : perl-File-Path-2.18-4.el9.noarch 149/210 Verifying : perl-IO-Socket-IP-0.41-5.el9.noarch 150/210 Verifying : perl-Pod-Usage-4:2.01-4.el9.noarch 151/210 Verifying : perl-Socket-4:2.031-4.el9.x86_64 152/210 Verifying : perl-Term-ANSIColor-5.01-461.el9.noarch 153/210 Verifying : perl-Text-ParseWords-3.30-460.el9.noarch 154/210 Verifying : perl-URI-5.09-3.el9.noarch 155/210 Verifying : perl-constant-1.33-461.el9.noarch 156/210 Verifying : fonts-srpm-macros-1:2.0.5-7.el9.1.noarch 157/210 Verifying : ocaml-srpm-macros-6-6.el9.noarch 158/210 Verifying : patch-2.7.6-16.el9.x86_64 159/210 Verifying : perl-Pod-Perldoc-3.28.01-461.el9.noarch 160/210 Verifying : perl-libnet-3.13-4.el9.noarch 161/210 Verifying : perl-Carp-1.50-460.el9.noarch 162/210 Verifying : perl-PathTools-3.78-461.el9.x86_64 163/210 Verifying : qt5-srpm-macros-5.15.9-1.el9.noarch 164/210 Verifying : perl-HTTP-Tiny-0.076-462.el9.noarch 165/210 Verifying : python-srpm-macros-3.9-54.el9.noarch 166/210 Verifying : perl-IO-Socket-SSL-2.073-2.el9.noarch 167/210 Verifying : perl-Scalar-List-Utils-4:1.56-462.el9.x86_64 168/210 Verifying : pyproject-srpm-macros-1.16.2-1.el9.noarch 169/210 Verifying : perl-AutoLoader-5.74-481.1.el9_6.noarch 170/210 Verifying : perl-B-1.80-481.1.el9_6.x86_64 171/210 Verifying : perl-Class-Struct-0.66-481.1.el9_6.noarch 172/210 Verifying : perl-Errno-1.30-481.1.el9_6.x86_64 173/210 Verifying : perl-Fcntl-1.13-481.1.el9_6.x86_64 174/210 Verifying : perl-File-Basename-2.85-481.1.el9_6.noarch 175/210 Verifying : perl-File-stat-1.09-481.1.el9_6.noarch 176/210 Verifying : perl-FileHandle-2.03-481.1.el9_6.noarch 177/210 Verifying : perl-Getopt-Std-1.12-481.1.el9_6.noarch 178/210 Verifying : perl-IO-1.43-481.1.el9_6.x86_64 179/210 Verifying : perl-IPC-Open3-1.21-481.1.el9_6.noarch 180/210 Verifying : perl-POSIX-1.94-481.1.el9_6.x86_64 181/210 Verifying : perl-SelectSaver-1.02-481.1.el9_6.noarch 182/210 Verifying : perl-Symbol-1.08-481.1.el9_6.noarch 183/210 Verifying : perl-base-2.27-481.1.el9_6.noarch 184/210 Verifying : perl-if-0.60.800-481.1.el9_6.noarch 185/210 Verifying : perl-interpreter-4:5.32.1-481.1.el9_6.x86_64 186/210 Verifying : perl-libs-4:5.32.1-481.1.el9_6.x86_64 187/210 Verifying : perl-mro-1.23-481.1.el9_6.x86_64 188/210 Verifying : perl-overload-1.31-481.1.el9_6.noarch 189/210 Verifying : perl-overloading-0.02-481.1.el9_6.noarch 190/210 Verifying : perl-subs-1.03-481.1.el9_6.noarch 191/210 Verifying : perl-vars-1.05-481.1.el9_6.noarch 192/210 Verifying : dwz-0.16-1.el9.x86_64 193/210 Verifying : debugedit-5.0-11.el9.x86_64 194/210 Verifying : efi-srpm-macros-6-4.el9.noarch 195/210 Verifying : gdb-minimal-16.3-2.el9.x86_64 196/210 Verifying : kernel-srpm-macros-1.0-14.el9.noarch 197/210 Verifying : perl-Net-SSLeay-1.94-3.el9.x86_64 198/210 Verifying : redhat-rpm-config-210-1.el9.noarch 199/210 Verifying : rpm-build-4.16.1.3-39.el9.x86_64 200/210 Verifying : go-srpm-macros-3.6.0-12.el9_7.noarch 201/210 Verifying : ansible-srpm-macros-1-16.el9.noarch 202/210 Verifying : epel-rpm-macros-9-17.el9.noarch 203/210 Verifying : forge-srpm-macros-0.4.0-1.el9.noarch 204/210 Verifying : fpc-srpm-macros-1.3-7.el9.noarch 205/210 Verifying : ghc-srpm-macros-epel-1.9.1-1.el9.noarch 206/210 Verifying : go-srpm-macros-epel-3.8.0-1.el9.noarch 207/210 Verifying : qt6-srpm-macros-6.6.2-1.el9.noarch 208/210 Verifying : rpmautospec-rpm-macros-0.8.1-11.el9.noarch 209/210 Verifying : rust-srpm-macros-epel-26.3-1.el9.noarch 210/210 Installed products updated. Installed: alternatives-1.24-2.el9.x86_64 ansible-srpm-macros-1-16.el9.noarch audit-libs-3.1.5-7.el9.x86_64 basesystem-11-13.el9.noarch bash-5.1.8-9.el9.x86_64 binutils-2.35.2-67.el9_7.1.x86_64 binutils-gold-2.35.2-67.el9_7.1.x86_64 bzip2-1.0.8-10.el9_5.x86_64 bzip2-libs-1.0.8-10.el9_5.x86_64 ca-certificates-2025.2.80_v9.0.305-91.el9.noarch coreutils-8.32-39.el9.x86_64 coreutils-common-8.32-39.el9.x86_64 cpio-2.13-16.el9.x86_64 cracklib-2.9.6-27.el9.x86_64 cracklib-dicts-2.9.6-27.el9.x86_64 crypto-policies-20250905-1.git377cc42.el9_7.noarch curl-7.76.1-34.el9.x86_64 cyrus-sasl-lib-2.1.27-22.el9.x86_64 debugedit-5.0-11.el9.x86_64 diffutils-3.7-12.el9.x86_64 dwz-0.16-1.el9.x86_64 ed-1.14.2-12.el9.x86_64 efi-srpm-macros-6-4.el9.noarch elfutils-0.193-1.el9.x86_64 elfutils-debuginfod-client-0.193-1.el9.x86_64 elfutils-default-yama-scope-0.193-1.el9.noarch elfutils-libelf-0.193-1.el9.x86_64 elfutils-libs-0.193-1.el9.x86_64 epel-rpm-macros-9-17.el9.noarch file-5.39-16.el9.x86_64 file-libs-5.39-16.el9.x86_64 filesystem-3.16-5.el9.x86_64 findutils-1:4.8.0-7.el9.x86_64 fonts-srpm-macros-1:2.0.5-7.el9.1.noarch forge-srpm-macros-0.4.0-1.el9.noarch fpc-srpm-macros-1.3-7.el9.noarch gawk-5.1.0-6.el9.x86_64 gdb-minimal-16.3-2.el9.x86_64 gdbm-libs-1:1.23-1.el9.x86_64 ghc-srpm-macros-1.5.0-6.el9.noarch ghc-srpm-macros-epel-1.9.1-1.el9.noarch glibc-2.34-231.el9_7.2.x86_64 glibc-common-2.34-231.el9_7.2.x86_64 glibc-gconv-extra-2.34-231.el9_7.2.x86_64 glibc-minimal-langpack-2.34-231.el9_7.2.x86_64 gmp-1:6.2.0-13.el9.x86_64 go-srpm-macros-3.6.0-12.el9_7.noarch go-srpm-macros-epel-3.8.0-1.el9.noarch grep-3.6-5.el9.x86_64 groff-base-1.22.4-10.el9.x86_64 gzip-1.12-1.el9.x86_64 info-6.7-15.el9.x86_64 json-c-0.14-11.el9.x86_64 kernel-srpm-macros-1.0-14.el9.noarch keyutils-libs-1.6.3-1.el9.x86_64 krb5-libs-1.21.1-8.el9_6.x86_64 libacl-2.3.1-4.el9.x86_64 libarchive-3.5.3-6.el9_6.x86_64 libattr-2.5.1-3.el9.x86_64 libblkid-2.37.4-21.el9.x86_64 libbrotli-1.0.9-7.el9_5.x86_64 libcap-2.48-10.el9.x86_64 libcap-ng-0.8.2-7.el9.x86_64 libcom_err-1.46.5-8.el9.x86_64 libcurl-7.76.1-34.el9.x86_64 libdb-5.3.28-57.el9_6.x86_64 libeconf-0.4.1-4.el9.x86_64 libevent-2.1.12-8.el9_4.x86_64 libfdisk-2.37.4-21.el9.x86_64 libffi-3.4.2-8.el9.x86_64 libgcc-11.5.0-11.el9.x86_64 libgcrypt-1.10.0-11.el9.x86_64 libgomp-11.5.0-11.el9.x86_64 libgpg-error-1.42-5.el9.x86_64 libidn2-2.3.0-7.el9.x86_64 libmount-2.37.4-21.el9.x86_64 libnghttp2-1.43.0-6.el9.x86_64 libpkgconf-1.7.3-10.el9.x86_64 libpsl-0.21.1-5.el9.x86_64 libpwquality-1.4.4-8.el9.x86_64 libselinux-3.6-3.el9.x86_64 libsemanage-3.6-5.el9_6.x86_64 libsepol-3.6-3.el9.x86_64 libsigsegv-2.13-4.el9.x86_64 libsmartcols-2.37.4-21.el9.x86_64 libssh-0.10.4-17.el9_7.x86_64 libssh-config-0.10.4-17.el9_7.noarch libstdc++-11.5.0-11.el9.x86_64 libtasn1-4.16.0-9.el9.x86_64 libtool-ltdl-2.4.6-46.el9.x86_64 libunistring-0.9.10-15.el9.x86_64 libutempter-1.2.1-6.el9.x86_64 libuuid-2.37.4-21.el9.x86_64 libverto-0.3.2-3.el9.x86_64 libxcrypt-4.4.18-3.el9.x86_64 libxml2-2.9.13-14.el9_7.x86_64 libzstd-1.5.5-1.el9.x86_64 lua-libs-5.4.4-4.el9.x86_64 lua-srpm-macros-1-6.el9.noarch lz4-libs-1.9.3-5.el9.x86_64 mpfr-4.1.0-7.el9.x86_64 ncurses-6.2-12.20210508.el9.x86_64 ncurses-base-6.2-12.20210508.el9.noarch ncurses-libs-6.2-12.20210508.el9.x86_64 ocaml-srpm-macros-6-6.el9.noarch openblas-srpm-macros-2-11.el9.noarch openldap-2.6.8-4.el9.x86_64 openssl-1:3.5.1-4.el9_7.x86_64 openssl-fips-provider-3.0.7-8.el9.x86_64 openssl-fips-provider-so-3.0.7-8.el9.x86_64 openssl-libs-1:3.5.1-4.el9_7.x86_64 p11-kit-0.25.3-3.el9_5.x86_64 p11-kit-trust-0.25.3-3.el9_5.x86_64 pam-1.5.1-26.el9_6.x86_64 patch-2.7.6-16.el9.x86_64 pcre-8.44-4.el9.x86_64 pcre2-10.40-6.el9.x86_64 pcre2-syntax-10.40-6.el9.noarch perl-AutoLoader-5.74-481.1.el9_6.noarch perl-B-1.80-481.1.el9_6.x86_64 perl-Carp-1.50-460.el9.noarch perl-Class-Struct-0.66-481.1.el9_6.noarch perl-Data-Dumper-2.174-462.el9.x86_64 perl-Digest-1.19-4.el9.noarch perl-Digest-MD5-2.58-4.el9.x86_64 perl-Encode-4:3.08-462.el9.x86_64 perl-Errno-1.30-481.1.el9_6.x86_64 perl-Exporter-5.74-461.el9.noarch perl-Fcntl-1.13-481.1.el9_6.x86_64 perl-File-Basename-2.85-481.1.el9_6.noarch perl-File-Path-2.18-4.el9.noarch perl-File-Temp-1:0.231.100-4.el9.noarch perl-File-stat-1.09-481.1.el9_6.noarch perl-FileHandle-2.03-481.1.el9_6.noarch perl-Getopt-Long-1:2.52-4.el9.noarch perl-Getopt-Std-1.12-481.1.el9_6.noarch perl-HTTP-Tiny-0.076-462.el9.noarch perl-IO-1.43-481.1.el9_6.x86_64 perl-IO-Socket-IP-0.41-5.el9.noarch perl-IO-Socket-SSL-2.073-2.el9.noarch perl-IPC-Open3-1.21-481.1.el9_6.noarch perl-MIME-Base64-3.16-4.el9.x86_64 perl-Mozilla-CA-20200520-6.el9.noarch perl-Net-SSLeay-1.94-3.el9.x86_64 perl-POSIX-1.94-481.1.el9_6.x86_64 perl-PathTools-3.78-461.el9.x86_64 perl-Pod-Escapes-1:1.07-460.el9.noarch perl-Pod-Perldoc-3.28.01-461.el9.noarch perl-Pod-Simple-1:3.42-4.el9.noarch perl-Pod-Usage-4:2.01-4.el9.noarch perl-Scalar-List-Utils-4:1.56-462.el9.x86_64 perl-SelectSaver-1.02-481.1.el9_6.noarch perl-Socket-4:2.031-4.el9.x86_64 perl-Storable-1:3.21-460.el9.x86_64 perl-Symbol-1.08-481.1.el9_6.noarch perl-Term-ANSIColor-5.01-461.el9.noarch perl-Term-Cap-1.17-460.el9.noarch perl-Text-ParseWords-3.30-460.el9.noarch perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch perl-Time-Local-2:1.300-7.el9.noarch perl-URI-5.09-3.el9.noarch perl-base-2.27-481.1.el9_6.noarch perl-constant-1.33-461.el9.noarch perl-if-0.60.800-481.1.el9_6.noarch perl-interpreter-4:5.32.1-481.1.el9_6.x86_64 perl-libnet-3.13-4.el9.noarch perl-libs-4:5.32.1-481.1.el9_6.x86_64 perl-mro-1.23-481.1.el9_6.x86_64 perl-overload-1.31-481.1.el9_6.noarch perl-overloading-0.02-481.1.el9_6.noarch perl-parent-1:0.238-460.el9.noarch perl-podlators-1:4.14-460.el9.noarch perl-srpm-macros-1-41.el9.noarch perl-subs-1.03-481.1.el9_6.noarch perl-vars-1.05-481.1.el9_6.noarch pkgconf-1.7.3-10.el9.x86_64 pkgconf-m4-1.7.3-10.el9.noarch pkgconf-pkg-config-1.7.3-10.el9.x86_64 popt-1.18-8.el9.x86_64 publicsuffix-list-dafsa-20210518-3.el9.noarch pyproject-srpm-macros-1.16.2-1.el9.noarch python-srpm-macros-3.9-54.el9.noarch qt5-srpm-macros-5.15.9-1.el9.noarch qt6-srpm-macros-6.6.2-1.el9.noarch readline-8.1-4.el9.x86_64 redhat-release-9.7-0.7.el9.x86_64 redhat-rpm-config-210-1.el9.noarch rpm-4.16.1.3-39.el9.x86_64 rpm-build-4.16.1.3-39.el9.x86_64 rpm-build-libs-4.16.1.3-39.el9.x86_64 rpm-libs-4.16.1.3-39.el9.x86_64 rpmautospec-rpm-macros-0.8.1-11.el9.noarch rust-srpm-macros-17-4.el9.noarch rust-srpm-macros-epel-26.3-1.el9.noarch sed-4.8-9.el9.x86_64 setup-2.13.7-10.el9.noarch shadow-utils-2:4.9-15.el9.x86_64 sqlite-libs-3.34.1-9.el9_7.x86_64 systemd-libs-252-55.el9_7.7.x86_64 tar-2:1.34-7.el9.x86_64 tzdata-2025c-1.el9.noarch unzip-6.0-59.el9.x86_64 util-linux-2.37.4-21.el9.x86_64 util-linux-core-2.37.4-21.el9.x86_64 which-2.21-30.el9_6.x86_64 xz-5.2.5-8.el9_0.x86_64 xz-libs-5.2.5-8.el9_0.x86_64 zip-3.0-35.el9.x86_64 zlib-1.2.11-40.el9.x86_64 zstd-1.5.5-1.el9.x86_64 Complete! Finish: installing minimal buildroot with dnf Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: alternatives-1.24-2.el9.x86_64 ansible-srpm-macros-1-16.el9.noarch audit-libs-3.1.5-7.el9.x86_64 basesystem-11-13.el9.noarch bash-5.1.8-9.el9.x86_64 binutils-2.35.2-67.el9_7.1.x86_64 binutils-gold-2.35.2-67.el9_7.1.x86_64 bzip2-1.0.8-10.el9_5.x86_64 bzip2-libs-1.0.8-10.el9_5.x86_64 ca-certificates-2025.2.80_v9.0.305-91.el9.noarch coreutils-8.32-39.el9.x86_64 coreutils-common-8.32-39.el9.x86_64 cpio-2.13-16.el9.x86_64 cracklib-2.9.6-27.el9.x86_64 cracklib-dicts-2.9.6-27.el9.x86_64 crypto-policies-20250905-1.git377cc42.el9_7.noarch curl-7.76.1-34.el9.x86_64 cyrus-sasl-lib-2.1.27-22.el9.x86_64 debugedit-5.0-11.el9.x86_64 diffutils-3.7-12.el9.x86_64 dwz-0.16-1.el9.x86_64 ed-1.14.2-12.el9.x86_64 efi-srpm-macros-6-4.el9.noarch elfutils-0.193-1.el9.x86_64 elfutils-debuginfod-client-0.193-1.el9.x86_64 elfutils-default-yama-scope-0.193-1.el9.noarch elfutils-libelf-0.193-1.el9.x86_64 elfutils-libs-0.193-1.el9.x86_64 epel-rpm-macros-9-17.el9.noarch file-5.39-16.el9.x86_64 file-libs-5.39-16.el9.x86_64 filesystem-3.16-5.el9.x86_64 findutils-4.8.0-7.el9.x86_64 fonts-srpm-macros-2.0.5-7.el9.1.noarch forge-srpm-macros-0.4.0-1.el9.noarch fpc-srpm-macros-1.3-7.el9.noarch gawk-5.1.0-6.el9.x86_64 gdb-minimal-16.3-2.el9.x86_64 gdbm-libs-1.23-1.el9.x86_64 ghc-srpm-macros-1.5.0-6.el9.noarch ghc-srpm-macros-epel-1.9.1-1.el9.noarch glibc-2.34-231.el9_7.2.x86_64 glibc-common-2.34-231.el9_7.2.x86_64 glibc-gconv-extra-2.34-231.el9_7.2.x86_64 glibc-minimal-langpack-2.34-231.el9_7.2.x86_64 gmp-6.2.0-13.el9.x86_64 go-srpm-macros-3.6.0-12.el9_7.noarch go-srpm-macros-epel-3.8.0-1.el9.noarch gpg-pubkey-3228467c-613798eb gpg-pubkey-5a6340b3-6229229e gpg-pubkey-fd431d51-4ae0493b grep-3.6-5.el9.x86_64 groff-base-1.22.4-10.el9.x86_64 gzip-1.12-1.el9.x86_64 info-6.7-15.el9.x86_64 json-c-0.14-11.el9.x86_64 kernel-srpm-macros-1.0-14.el9.noarch keyutils-libs-1.6.3-1.el9.x86_64 krb5-libs-1.21.1-8.el9_6.x86_64 libacl-2.3.1-4.el9.x86_64 libarchive-3.5.3-6.el9_6.x86_64 libattr-2.5.1-3.el9.x86_64 libblkid-2.37.4-21.el9.x86_64 libbrotli-1.0.9-7.el9_5.x86_64 libcap-2.48-10.el9.x86_64 libcap-ng-0.8.2-7.el9.x86_64 libcom_err-1.46.5-8.el9.x86_64 libcurl-7.76.1-34.el9.x86_64 libdb-5.3.28-57.el9_6.x86_64 libeconf-0.4.1-4.el9.x86_64 libevent-2.1.12-8.el9_4.x86_64 libfdisk-2.37.4-21.el9.x86_64 libffi-3.4.2-8.el9.x86_64 libgcc-11.5.0-11.el9.x86_64 libgcrypt-1.10.0-11.el9.x86_64 libgomp-11.5.0-11.el9.x86_64 libgpg-error-1.42-5.el9.x86_64 libidn2-2.3.0-7.el9.x86_64 libmount-2.37.4-21.el9.x86_64 libnghttp2-1.43.0-6.el9.x86_64 libpkgconf-1.7.3-10.el9.x86_64 libpsl-0.21.1-5.el9.x86_64 libpwquality-1.4.4-8.el9.x86_64 libselinux-3.6-3.el9.x86_64 libsemanage-3.6-5.el9_6.x86_64 libsepol-3.6-3.el9.x86_64 libsigsegv-2.13-4.el9.x86_64 libsmartcols-2.37.4-21.el9.x86_64 libssh-0.10.4-17.el9_7.x86_64 libssh-config-0.10.4-17.el9_7.noarch libstdc++-11.5.0-11.el9.x86_64 libtasn1-4.16.0-9.el9.x86_64 libtool-ltdl-2.4.6-46.el9.x86_64 libunistring-0.9.10-15.el9.x86_64 libutempter-1.2.1-6.el9.x86_64 libuuid-2.37.4-21.el9.x86_64 libverto-0.3.2-3.el9.x86_64 libxcrypt-4.4.18-3.el9.x86_64 libxml2-2.9.13-14.el9_7.x86_64 libzstd-1.5.5-1.el9.x86_64 lua-libs-5.4.4-4.el9.x86_64 lua-srpm-macros-1-6.el9.noarch lz4-libs-1.9.3-5.el9.x86_64 mpfr-4.1.0-7.el9.x86_64 ncurses-6.2-12.20210508.el9.x86_64 ncurses-base-6.2-12.20210508.el9.noarch ncurses-libs-6.2-12.20210508.el9.x86_64 ocaml-srpm-macros-6-6.el9.noarch openblas-srpm-macros-2-11.el9.noarch openldap-2.6.8-4.el9.x86_64 openssl-3.5.1-4.el9_7.x86_64 openssl-fips-provider-3.0.7-8.el9.x86_64 openssl-fips-provider-so-3.0.7-8.el9.x86_64 openssl-libs-3.5.1-4.el9_7.x86_64 p11-kit-0.25.3-3.el9_5.x86_64 p11-kit-trust-0.25.3-3.el9_5.x86_64 pam-1.5.1-26.el9_6.x86_64 patch-2.7.6-16.el9.x86_64 pcre-8.44-4.el9.x86_64 pcre2-10.40-6.el9.x86_64 pcre2-syntax-10.40-6.el9.noarch perl-AutoLoader-5.74-481.1.el9_6.noarch perl-B-1.80-481.1.el9_6.x86_64 perl-Carp-1.50-460.el9.noarch perl-Class-Struct-0.66-481.1.el9_6.noarch perl-Data-Dumper-2.174-462.el9.x86_64 perl-Digest-1.19-4.el9.noarch perl-Digest-MD5-2.58-4.el9.x86_64 perl-Encode-3.08-462.el9.x86_64 perl-Errno-1.30-481.1.el9_6.x86_64 perl-Exporter-5.74-461.el9.noarch perl-Fcntl-1.13-481.1.el9_6.x86_64 perl-File-Basename-2.85-481.1.el9_6.noarch perl-File-Path-2.18-4.el9.noarch perl-File-Temp-0.231.100-4.el9.noarch perl-File-stat-1.09-481.1.el9_6.noarch perl-FileHandle-2.03-481.1.el9_6.noarch perl-Getopt-Long-2.52-4.el9.noarch perl-Getopt-Std-1.12-481.1.el9_6.noarch perl-HTTP-Tiny-0.076-462.el9.noarch perl-IO-1.43-481.1.el9_6.x86_64 perl-IO-Socket-IP-0.41-5.el9.noarch perl-IO-Socket-SSL-2.073-2.el9.noarch perl-IPC-Open3-1.21-481.1.el9_6.noarch perl-MIME-Base64-3.16-4.el9.x86_64 perl-Mozilla-CA-20200520-6.el9.noarch perl-Net-SSLeay-1.94-3.el9.x86_64 perl-POSIX-1.94-481.1.el9_6.x86_64 perl-PathTools-3.78-461.el9.x86_64 perl-Pod-Escapes-1.07-460.el9.noarch perl-Pod-Perldoc-3.28.01-461.el9.noarch perl-Pod-Simple-3.42-4.el9.noarch perl-Pod-Usage-2.01-4.el9.noarch perl-Scalar-List-Utils-1.56-462.el9.x86_64 perl-SelectSaver-1.02-481.1.el9_6.noarch perl-Socket-2.031-4.el9.x86_64 perl-Storable-3.21-460.el9.x86_64 perl-Symbol-1.08-481.1.el9_6.noarch perl-Term-ANSIColor-5.01-461.el9.noarch perl-Term-Cap-1.17-460.el9.noarch perl-Text-ParseWords-3.30-460.el9.noarch perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch perl-Time-Local-1.300-7.el9.noarch perl-URI-5.09-3.el9.noarch perl-base-2.27-481.1.el9_6.noarch perl-constant-1.33-461.el9.noarch perl-if-0.60.800-481.1.el9_6.noarch perl-interpreter-5.32.1-481.1.el9_6.x86_64 perl-libnet-3.13-4.el9.noarch perl-libs-5.32.1-481.1.el9_6.x86_64 perl-mro-1.23-481.1.el9_6.x86_64 perl-overload-1.31-481.1.el9_6.noarch perl-overloading-0.02-481.1.el9_6.noarch perl-parent-0.238-460.el9.noarch perl-podlators-4.14-460.el9.noarch perl-srpm-macros-1-41.el9.noarch perl-subs-1.03-481.1.el9_6.noarch perl-vars-1.05-481.1.el9_6.noarch pkgconf-1.7.3-10.el9.x86_64 pkgconf-m4-1.7.3-10.el9.noarch pkgconf-pkg-config-1.7.3-10.el9.x86_64 popt-1.18-8.el9.x86_64 publicsuffix-list-dafsa-20210518-3.el9.noarch pyproject-srpm-macros-1.16.2-1.el9.noarch python-srpm-macros-3.9-54.el9.noarch qt5-srpm-macros-5.15.9-1.el9.noarch qt6-srpm-macros-6.6.2-1.el9.noarch readline-8.1-4.el9.x86_64 redhat-release-9.7-0.7.el9.x86_64 redhat-rpm-config-210-1.el9.noarch rpm-4.16.1.3-39.el9.x86_64 rpm-build-4.16.1.3-39.el9.x86_64 rpm-build-libs-4.16.1.3-39.el9.x86_64 rpm-libs-4.16.1.3-39.el9.x86_64 rpmautospec-rpm-macros-0.8.1-11.el9.noarch rust-srpm-macros-17-4.el9.noarch rust-srpm-macros-epel-26.3-1.el9.noarch sed-4.8-9.el9.x86_64 setup-2.13.7-10.el9.noarch shadow-utils-4.9-15.el9.x86_64 sqlite-libs-3.34.1-9.el9_7.x86_64 systemd-libs-252-55.el9_7.7.x86_64 tar-1.34-7.el9.x86_64 tzdata-2025c-1.el9.noarch unzip-6.0-59.el9.x86_64 util-linux-2.37.4-21.el9.x86_64 util-linux-core-2.37.4-21.el9.x86_64 which-2.21-30.el9_6.x86_64 xz-5.2.5-8.el9_0.x86_64 xz-libs-5.2.5-8.el9_0.x86_64 zip-3.0-35.el9.x86_64 zlib-1.2.11-40.el9.x86_64 zstd-1.5.5-1.el9.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1544054400 Wrote: /builddir/build/SRPMS/mongodb-4.0.3-3.el9.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root/var/log/dnf.rpm.log /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root/var/log/dnf.librepo.log /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root/var/log/dnf.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-iggg7l1q/mongodb/mongodb.spec) Config(child) 0 minutes 52 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 INFO: Start(/var/lib/copr-rpmbuild/results/mongodb-4.0.3-3.el9.src.rpm) Config(rhel+epel-9-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/rhel+epel-9-x86_64-bootstrap-1767084518.434607/root. INFO: reusing tmpfs at /var/lib/mock/rhel+epel-9-x86_64-bootstrap-1767084518.434607/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/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 INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.16.1.3-39.el9.x86_64 python3-dnf-4.14.0-31.el9.noarch python3-dnf-plugins-core-4.3.0-24.el9_7.noarch yum-4.14.0-31.el9.noarch Finish: chroot init Start: build phase for mongodb-4.0.3-3.el9.src.rpm Start: build setup for mongodb-4.0.3-3.el9.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1544054400 Wrote: /builddir/build/SRPMS/mongodb-4.0.3-3.el9.src.rpm No matches found for the following disable plugin patterns: local, spacewalk, versionlock Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Copr repository 109 kB/s | 2.2 kB 00:00 Additional repo copr_aminasyan_el9_collection 159 kB/s | 2.2 kB 00:00 Red Hat Enterprise Linux - BaseOS 39 kB/s | 4.1 kB 00:00 Red Hat Enterprise Linux - AppStream 36 kB/s | 4.5 kB 00:00 Red Hat Enterprise Linux - CodeReady Linux Buil 49 kB/s | 4.5 kB 00:00 Extra Packages for Enterprise Linux 9 - x86_64 49 kB/s | 13 kB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: boost-devel x86_64 1.75.0-13.el9_7 appstream 14 M gcc-c++ x86_64 11.5.0-11.el9 appstream 13 M gperftools-devel x86_64 2.9.1-3.el9 epel 392 k libcurl-devel x86_64 7.76.1-34.el9 appstream 974 k libpcap-devel x86_64 14:1.10.0-4.el9 codeready-builder 164 k libstemmer-devel x86_64 0-18.585svn.el9 codeready-builder 11 k openssl-devel x86_64 1:3.5.1-4.el9_7 appstream 4.8 M pcre-devel x86_64 8.44-4.el9 appstream 510 k python3-cheetah x86_64 3.2.6.post1-1.el9 epel 311 k python3-devel x86_64 3.9.25-2.el9_7 appstream 245 k python3-pymongo x86_64 3.10.1-7.el9 epel 352 k python3-pyyaml x86_64 5.4.1-6.el9 baseos 209 k python3-requests noarch 2.27.1-1.el9 copr_base 118 k python3-scons noarch 4.5.2-1.el9 epel 2.1 M snappy-devel x86_64 1.1.8-8.el9 appstream 26 k systemd x86_64 252-55.el9_7.7 baseos 4.2 M valgrind-devel x86_64 1:3.25.1-3.el9 appstream 48 k yaml-cpp-devel x86_64 0.6.3-5.el9 epel 33 k zlib-devel x86_64 1.2.11-40.el9 appstream 47 k Installing dependencies: acl x86_64 2.3.1-4.el9 baseos 75 k annobin x86_64 12.98-1.el9 appstream 1.1 M boost x86_64 1.75.0-13.el9_7 appstream 9.8 k boost-atomic x86_64 1.75.0-13.el9_7 appstream 15 k boost-chrono x86_64 1.75.0-13.el9_7 appstream 23 k boost-container x86_64 1.75.0-13.el9_7 appstream 35 k boost-context x86_64 1.75.0-13.el9_7 appstream 13 k boost-contract x86_64 1.75.0-13.el9_7 appstream 42 k boost-coroutine x86_64 1.75.0-13.el9_7 appstream 30 k boost-date-time x86_64 1.75.0-13.el9_7 appstream 11 k boost-fiber x86_64 1.75.0-13.el9_7 appstream 37 k boost-filesystem x86_64 1.75.0-13.el9_7 appstream 55 k boost-graph x86_64 1.75.0-13.el9_7 appstream 99 k boost-iostreams x86_64 1.75.0-13.el9_7 appstream 37 k boost-locale x86_64 1.75.0-13.el9_7 appstream 212 k boost-log x86_64 1.75.0-13.el9_7 appstream 405 k boost-math x86_64 1.75.0-13.el9_7 appstream 204 k boost-nowide x86_64 1.75.0-13.el9_7 appstream 13 k boost-numpy3 x86_64 1.75.0-13.el9_7 appstream 25 k boost-program-options x86_64 1.75.0-13.el9_7 appstream 104 k boost-python3 x86_64 1.75.0-13.el9_7 appstream 91 k boost-random x86_64 1.75.0-13.el9_7 appstream 22 k boost-regex x86_64 1.75.0-13.el9_7 appstream 275 k boost-serialization x86_64 1.75.0-13.el9_7 appstream 127 k boost-stacktrace x86_64 1.75.0-13.el9_7 appstream 25 k boost-system x86_64 1.75.0-13.el9_7 appstream 11 k boost-test x86_64 1.75.0-13.el9_7 appstream 228 k boost-thread x86_64 1.75.0-13.el9_7 appstream 53 k boost-timer x86_64 1.75.0-13.el9_7 appstream 21 k boost-type_erasure x86_64 1.75.0-13.el9_7 appstream 28 k boost-wave x86_64 1.75.0-13.el9_7 appstream 207 k cmake-filesystem x86_64 3.26.5-2.el9 appstream 23 k cpp x86_64 11.5.0-11.el9 appstream 11 M dbus x86_64 1:1.12.20-8.el9 baseos 7.9 k dbus-broker x86_64 28-7.el9 baseos 175 k dbus-common noarch 1:1.12.20-8.el9 baseos 18 k expat x86_64 2.5.0-5.el9_7.1 baseos 117 k flexiblas x86_64 3.0.4-8.el9 appstream 34 k flexiblas-netlib x86_64 3.0.4-8.el9 appstream 3.0 M flexiblas-openblas-openmp x86_64 3.0.4-8.el9 appstream 19 k gcc x86_64 11.5.0-11.el9 appstream 32 M gcc-plugin-annobin x86_64 11.5.0-11.el9 appstream 37 k glibc-devel x86_64 2.34-231.el9_7.2 appstream 37 k glibc-headers x86_64 2.34-231.el9_7.2 appstream 545 k gperftools-libs x86_64 2.9.1-3.el9 epel 308 k kernel-headers x86_64 5.14.0-611.16.1.el9_7 appstream 2.9 M kmod-libs x86_64 28-11.el9 baseos 62 k libedit x86_64 3.1-38.20210216cvs.el9 baseos 107 k libgfortran x86_64 11.5.0-11.el9 baseos 794 k libibverbs x86_64 57.0-2.el9 baseos 453 k libicu x86_64 67.1-10.el9_6 baseos 9.6 M libicu-devel x86_64 67.1-10.el9_6 appstream 938 k libmpc x86_64 1.2.1-4.el9 appstream 65 k libnl3 x86_64 3.11.0-1.el9 baseos 367 k libpcap x86_64 14:1.10.0-4.el9 baseos 177 k libquadmath x86_64 11.5.0-11.el9 baseos 184 k libquadmath-devel x86_64 11.5.0-11.el9 appstream 25 k libseccomp x86_64 2.5.2-2.el9 baseos 74 k libstdc++-devel x86_64 11.5.0-11.el9 appstream 2.4 M libstemmer x86_64 0-18.585svn.el9 appstream 85 k libunwind x86_64 1.8.0-2.el9 copr_base 73 k libxcrypt-devel x86_64 4.4.18-3.el9 appstream 32 k libyaml x86_64 0.2.5-7.el9 baseos 63 k llvm-filesystem x86_64 20.1.8-3.el9 appstream 9.2 k llvm-libs x86_64 20.1.8-3.el9 appstream 30 M make x86_64 1:4.3-8.el9 baseos 541 k openblas x86_64 0.3.29-1.el9 appstream 42 k openblas-openmp x86_64 0.3.29-1.el9 appstream 5.3 M pcre-cpp x86_64 8.44-4.el9 appstream 27 k pcre-utf16 x86_64 8.44-4.el9 appstream 186 k pcre-utf32 x86_64 8.44-4.el9 appstream 177 k pyproject-rpm-macros noarch 1.16.2-1.el9 codeready-builder 46 k python-rpm-macros noarch 3.9-54.el9 appstream 16 k python3 x86_64 3.9.25-2.el9_7 baseos 26 k python3-bson x86_64 3.10.1-7.el9 epel 106 k python3-charset-normalizer noarch 2.0.10-1.el9 epel 72 k python3-idna noarch 2.10-7.el9_4.1 baseos 106 k python3-libs x86_64 3.9.25-2.el9_7 baseos 8.1 M python3-numpy x86_64 1:1.23.5-1.el9 appstream 6.1 M python3-packaging noarch 20.9-5.el9 appstream 81 k python3-pip-wheel noarch 21.3.1-1.el9 baseos 1.1 M python3-pyparsing noarch 2.4.7-9.el9 baseos 154 k python3-pysocks noarch 1.7.1-12.el9 baseos 38 k python3-rpm-generators noarch 12-9.el9 appstream 29 k python3-rpm-macros noarch 3.9-54.el9 appstream 10 k python3-setuptools noarch 53.0.0-15.el9 baseos 936 k python3-setuptools-wheel noarch 53.0.0-15.el9 baseos 468 k python3-six noarch 1.15.0-9.el9 baseos 40 k python3-urllib3 noarch 1.26.5-6.el9 baseos 219 k snappy x86_64 1.1.8-8.el9 baseos 37 k systemd-pam x86_64 252-55.el9_7.7 baseos 283 k systemd-rpm-macros noarch 252-55.el9_7.7 baseos 71 k yaml-cpp x86_64 0.6.3-5.el9 epel 122 k Transaction Summary ================================================================================ Install 112 Packages Total download size: 165 M Installed size: 661 M Downloading Packages: (1/112): python3-requests-2.27.1-1.el9.noarch.r 1.6 MB/s | 118 kB 00:00 (2/112): libpcap-1.10.0-4.el9.x86_64.rpm 1.4 MB/s | 177 kB 00:00 (3/112): libseccomp-2.5.2-2.el9.x86_64.rpm 753 kB/s | 74 kB 00:00 (4/112): libunwind-1.8.0-2.el9.x86_64.rpm 407 kB/s | 73 kB 00:00 (5/112): libyaml-0.2.5-7.el9.x86_64.rpm 862 kB/s | 63 kB 00:00 (6/112): python3-pyparsing-2.4.7-9.el9.noarch.r 1.9 MB/s | 154 kB 00:00 (7/112): python3-pyyaml-5.4.1-6.el9.x86_64.rpm 2.6 MB/s | 209 kB 00:00 (8/112): python3-pysocks-1.7.1-12.el9.noarch.rp 348 kB/s | 38 kB 00:00 (9/112): python3-six-1.15.0-9.el9.noarch.rpm 530 kB/s | 40 kB 00:00 (10/112): dbus-broker-28-7.el9.x86_64.rpm 2.2 MB/s | 175 kB 00:00 (11/112): dbus-1.12.20-8.el9.x86_64.rpm 96 kB/s | 7.9 kB 00:00 (12/112): dbus-common-1.12.20-8.el9.noarch.rpm 204 kB/s | 18 kB 00:00 (13/112): snappy-1.1.8-8.el9.x86_64.rpm 173 kB/s | 37 kB 00:00 (14/112): libedit-3.1-38.20210216cvs.el9.x86_64 1.3 MB/s | 107 kB 00:00 (15/112): acl-2.3.1-4.el9.x86_64.rpm 993 kB/s | 75 kB 00:00 (16/112): python3-idna-2.10-7.el9_4.1.noarch.rp 1.4 MB/s | 106 kB 00:00 (17/112): make-4.3-8.el9.x86_64.rpm 4.9 MB/s | 541 kB 00:00 (18/112): python3-pip-wheel-21.3.1-1.el9.noarch 13 MB/s | 1.1 MB 00:00 (19/112): python3-urllib3-1.26.5-6.el9.noarch.r 1.9 MB/s | 219 kB 00:00 (20/112): libicu-67.1-10.el9_6.x86_64.rpm 88 MB/s | 9.6 MB 00:00 (21/112): libnl3-3.11.0-1.el9.x86_64.rpm 2.6 MB/s | 367 kB 00:00 (22/112): kmod-libs-28-11.el9.x86_64.rpm 828 kB/s | 62 kB 00:00 (23/112): python3-setuptools-53.0.0-15.el9.noar 9.8 MB/s | 936 kB 00:00 (24/112): python3-setuptools-wheel-53.0.0-15.el 5.7 MB/s | 468 kB 00:00 (25/112): libquadmath-11.5.0-11.el9.x86_64.rpm 1.1 MB/s | 184 kB 00:00 (26/112): libgfortran-11.5.0-11.el9.x86_64.rpm 9.8 MB/s | 794 kB 00:00 (27/112): libibverbs-57.0-2.el9.x86_64.rpm 5.3 MB/s | 453 kB 00:00 (28/112): systemd-pam-252-55.el9_7.7.x86_64.rpm 3.7 MB/s | 283 kB 00:00 (29/112): systemd-252-55.el9_7.7.x86_64.rpm 47 MB/s | 4.2 MB 00:00 (30/112): systemd-rpm-macros-252-55.el9_7.7.noa 782 kB/s | 71 kB 00:00 (31/112): expat-2.5.0-5.el9_7.1.x86_64.rpm 572 kB/s | 117 kB 00:00 (32/112): python3-3.9.25-2.el9_7.x86_64.rpm 243 kB/s | 26 kB 00:00 (33/112): python3-libs-3.9.25-2.el9_7.x86_64.rp 78 MB/s | 8.1 MB 00:00 (34/112): libstemmer-0-18.585svn.el9.x86_64.rpm 1.0 MB/s | 85 kB 00:00 (35/112): flexiblas-3.0.4-8.el9.x86_64.rpm 452 kB/s | 34 kB 00:00 (36/112): libmpc-1.2.1-4.el9.x86_64.rpm 845 kB/s | 65 kB 00:00 (37/112): flexiblas-openblas-openmp-3.0.4-8.el9 96 kB/s | 19 kB 00:00 (38/112): flexiblas-netlib-3.0.4-8.el9.x86_64.r 35 MB/s | 3.0 MB 00:00 (39/112): libxcrypt-devel-4.4.18-3.el9.x86_64.r 315 kB/s | 32 kB 00:00 (40/112): python3-packaging-20.9-5.el9.noarch.r 836 kB/s | 81 kB 00:00 (41/112): cmake-filesystem-3.26.5-2.el9.x86_64. 279 kB/s | 23 kB 00:00 (42/112): python3-rpm-generators-12-9.el9.noarc 288 kB/s | 29 kB 00:00 (43/112): pcre-utf16-8.44-4.el9.x86_64.rpm 2.4 MB/s | 186 kB 00:00 (44/112): zlib-devel-1.2.11-40.el9.x86_64.rpm 214 kB/s | 47 kB 00:00 (45/112): python3-rpm-macros-3.9-54.el9.noarch. 138 kB/s | 10 kB 00:00 (46/112): pcre-cpp-8.44-4.el9.x86_64.rpm 314 kB/s | 27 kB 00:00 (47/112): pcre-devel-8.44-4.el9.x86_64.rpm 6.5 MB/s | 510 kB 00:00 (48/112): pcre-utf32-8.44-4.el9.x86_64.rpm 1.9 MB/s | 177 kB 00:00 (49/112): python-rpm-macros-3.9-54.el9.noarch.r 202 kB/s | 16 kB 00:00 (50/112): snappy-devel-1.1.8-8.el9.x86_64.rpm 327 kB/s | 26 kB 00:00 (51/112): libicu-devel-67.1-10.el9_6.x86_64.rpm 11 MB/s | 938 kB 00:00 (52/112): annobin-12.98-1.el9.x86_64.rpm 13 MB/s | 1.1 MB 00:00 (53/112): python3-numpy-1.23.5-1.el9.x86_64.rpm 44 MB/s | 6.1 MB 00:00 (54/112): libcurl-devel-7.76.1-34.el9.x86_64.rp 12 MB/s | 974 kB 00:00 (55/112): cpp-11.5.0-11.el9.x86_64.rpm 88 MB/s | 11 MB 00:00 (56/112): libquadmath-devel-11.5.0-11.el9.x86_6 297 kB/s | 25 kB 00:00 (57/112): libstdc++-devel-11.5.0-11.el9.x86_64. 28 MB/s | 2.4 MB 00:00 (58/112): gcc-c++-11.5.0-11.el9.x86_64.rpm 99 MB/s | 13 MB 00:00 (59/112): gcc-plugin-annobin-11.5.0-11.el9.x86_ 483 kB/s | 37 kB 00:00 (60/112): gcc-11.5.0-11.el9.x86_64.rpm 149 MB/s | 32 MB 00:00 (61/112): llvm-filesystem-20.1.8-3.el9.x86_64.r 103 kB/s | 9.2 kB 00:00 (62/112): openblas-0.3.29-1.el9.x86_64.rpm 541 kB/s | 42 kB 00:00 (63/112): llvm-libs-20.1.8-3.el9.x86_64.rpm 178 MB/s | 30 MB 00:00 (64/112): openblas-openmp-0.3.29-1.el9.x86_64.r 46 MB/s | 5.3 MB 00:00 (65/112): valgrind-devel-3.25.1-3.el9.x86_64.rp 546 kB/s | 48 kB 00:00 (66/112): glibc-devel-2.34-231.el9_7.2.x86_64.r 487 kB/s | 37 kB 00:00 (67/112): glibc-headers-2.34-231.el9_7.2.x86_64 6.8 MB/s | 545 kB 00:00 (68/112): openssl-devel-3.5.1-4.el9_7.x86_64.rp 53 MB/s | 4.8 MB 00:00 (69/112): kernel-headers-5.14.0-611.16.1.el9_7. 34 MB/s | 2.9 MB 00:00 (70/112): boost-1.75.0-13.el9_7.x86_64.rpm 100 kB/s | 9.8 kB 00:00 (71/112): boost-chrono-1.75.0-13.el9_7.x86_64.r 293 kB/s | 23 kB 00:00 (72/112): boost-atomic-1.75.0-13.el9_7.x86_64.r 142 kB/s | 15 kB 00:00 (73/112): boost-container-1.75.0-13.el9_7.x86_6 448 kB/s | 35 kB 00:00 (74/112): boost-context-1.75.0-13.el9_7.x86_64. 155 kB/s | 13 kB 00:00 (75/112): boost-contract-1.75.0-13.el9_7.x86_64 576 kB/s | 42 kB 00:00 (76/112): boost-coroutine-1.75.0-13.el9_7.x86_6 250 kB/s | 30 kB 00:00 (77/112): boost-date-time-1.75.0-13.el9_7.x86_6 144 kB/s | 11 kB 00:00 (78/112): boost-devel-1.75.0-13.el9_7.x86_64.rp 97 MB/s | 14 MB 00:00 (79/112): boost-filesystem-1.75.0-13.el9_7.x86_ 709 kB/s | 55 kB 00:00 (80/112): boost-fiber-1.75.0-13.el9_7.x86_64.rp 337 kB/s | 37 kB 00:00 (81/112): boost-graph-1.75.0-13.el9_7.x86_64.rp 1.3 MB/s | 99 kB 00:00 (82/112): boost-iostreams-1.75.0-13.el9_7.x86_6 428 kB/s | 37 kB 00:00 (83/112): boost-locale-1.75.0-13.el9_7.x86_64.r 2.1 MB/s | 212 kB 00:00 (84/112): boost-math-1.75.0-13.el9_7.x86_64.rpm 2.6 MB/s | 204 kB 00:00 (85/112): boost-log-1.75.0-13.el9_7.x86_64.rpm 4.4 MB/s | 405 kB 00:00 (86/112): boost-nowide-1.75.0-13.el9_7.x86_64.r 182 kB/s | 13 kB 00:00 (87/112): boost-program-options-1.75.0-13.el9_7 1.3 MB/s | 104 kB 00:00 (88/112): boost-numpy3-1.75.0-13.el9_7.x86_64.r 268 kB/s | 25 kB 00:00 (89/112): boost-python3-1.75.0-13.el9_7.x86_64. 837 kB/s | 91 kB 00:00 (90/112): boost-random-1.75.0-13.el9_7.x86_64.r 281 kB/s | 22 kB 00:00 (91/112): boost-regex-1.75.0-13.el9_7.x86_64.rp 3.3 MB/s | 275 kB 00:00 (92/112): boost-serialization-1.75.0-13.el9_7.x 1.4 MB/s | 127 kB 00:00 (93/112): boost-stacktrace-1.75.0-13.el9_7.x86_ 325 kB/s | 25 kB 00:00 (94/112): boost-system-1.75.0-13.el9_7.x86_64.r 120 kB/s | 11 kB 00:00 (95/112): boost-thread-1.75.0-13.el9_7.x86_64.r 624 kB/s | 53 kB 00:00 (96/112): boost-timer-1.75.0-13.el9_7.x86_64.rp 263 kB/s | 21 kB 00:00 (97/112): boost-test-1.75.0-13.el9_7.x86_64.rpm 1.5 MB/s | 228 kB 00:00 (98/112): boost-type_erasure-1.75.0-13.el9_7.x8 362 kB/s | 28 kB 00:00 (99/112): boost-wave-1.75.0-13.el9_7.x86_64.rpm 2.5 MB/s | 207 kB 00:00 (100/112): python3-devel-3.9.25-2.el9_7.x86_64. 2.9 MB/s | 245 kB 00:00 (101/112): libpcap-devel-1.10.0-4.el9.x86_64.rp 1.7 MB/s | 164 kB 00:00 (102/112): libstemmer-devel-0-18.585svn.el9.x86 146 kB/s | 11 kB 00:00 (103/112): gperftools-libs-2.9.1-3.el9.x86_64.r 29 MB/s | 308 kB 00:00 (104/112): pyproject-rpm-macros-1.16.2-1.el9.no 600 kB/s | 46 kB 00:00 (105/112): python3-charset-normalizer-2.0.10-1. 1.2 MB/s | 72 kB 00:00 (106/112): python3-bson-3.10.1-7.el9.x86_64.rpm 1.0 MB/s | 106 kB 00:00 (107/112): gperftools-devel-2.9.1-3.el9.x86_64. 2.7 MB/s | 392 kB 00:00 (108/112): python3-cheetah-3.2.6.post1-1.el9.x8 2.9 MB/s | 311 kB 00:00 (109/112): yaml-cpp-0.6.3-5.el9.x86_64.rpm 26 MB/s | 122 kB 00:00 (110/112): yaml-cpp-devel-0.6.3-5.el9.x86_64.rp 8.8 MB/s | 33 kB 00:00 (111/112): python3-pymongo-3.10.1-7.el9.x86_64. 3.2 MB/s | 352 kB 00:00 (112/112): python3-scons-4.5.2-1.el9.noarch.rpm 13 MB/s | 2.1 MB 00:00 -------------------------------------------------------------------------------- Total 42 MB/s | 165 MB 00:03 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : boost-system-1.75.0-13.el9_7.x86_64 1/112 Installing : boost-chrono-1.75.0-13.el9_7.x86_64 2/112 Installing : boost-thread-1.75.0-13.el9_7.x86_64 3/112 Installing : libicu-67.1-10.el9_6.x86_64 4/112 Installing : boost-filesystem-1.75.0-13.el9_7.x86_64 5/112 Installing : boost-regex-1.75.0-13.el9_7.x86_64 6/112 Installing : boost-context-1.75.0-13.el9_7.x86_64 7/112 Installing : python-rpm-macros-3.9-54.el9.noarch 8/112 Installing : libmpc-1.2.1-4.el9.x86_64 9/112 Installing : libquadmath-11.5.0-11.el9.x86_64 10/112 Installing : libgfortran-11.5.0-11.el9.x86_64 11/112 Installing : python3-rpm-macros-3.9-54.el9.noarch 12/112 Installing : boost-python3-1.75.0-13.el9_7.x86_64 13/112 Installing : boost-date-time-1.75.0-13.el9_7.x86_64 14/112 Installing : boost-atomic-1.75.0-13.el9_7.x86_64 15/112 Installing : cmake-filesystem-3.26.5-2.el9.x86_64 16/112 Installing : flexiblas-3.0.4-8.el9.x86_64 17/112 Installing : expat-2.5.0-5.el9_7.1.x86_64 18/112 Installing : boost-log-1.75.0-13.el9_7.x86_64 19/112 Installing : boost-wave-1.75.0-13.el9_7.x86_64 20/112 Installing : cpp-11.5.0-11.el9.x86_64 21/112 Installing : boost-coroutine-1.75.0-13.el9_7.x86_64 22/112 Installing : boost-fiber-1.75.0-13.el9_7.x86_64 23/112 Installing : boost-graph-1.75.0-13.el9_7.x86_64 24/112 Installing : libicu-devel-67.1-10.el9_6.x86_64 25/112 Installing : boost-locale-1.75.0-13.el9_7.x86_64 26/112 Installing : boost-type_erasure-1.75.0-13.el9_7.x86_64 27/112 Installing : boost-timer-1.75.0-13.el9_7.x86_64 28/112 Installing : yaml-cpp-0.6.3-5.el9.x86_64 29/112 Installing : boost-test-1.75.0-13.el9_7.x86_64 30/112 Installing : boost-stacktrace-1.75.0-13.el9_7.x86_64 31/112 Installing : boost-serialization-1.75.0-13.el9_7.x86_64 32/112 Installing : boost-random-1.75.0-13.el9_7.x86_64 33/112 Installing : boost-program-options-1.75.0-13.el9_7.x86_64 34/112 Installing : boost-nowide-1.75.0-13.el9_7.x86_64 35/112 Installing : boost-math-1.75.0-13.el9_7.x86_64 36/112 Installing : boost-iostreams-1.75.0-13.el9_7.x86_64 37/112 Installing : boost-contract-1.75.0-13.el9_7.x86_64 38/112 Installing : boost-container-1.75.0-13.el9_7.x86_64 39/112 Installing : kernel-headers-5.14.0-611.16.1.el9_7.x86_64 40/112 Installing : glibc-headers-2.34-231.el9_7.2.x86_64 41/112 Installing : glibc-devel-2.34-231.el9_7.2.x86_64 42/112 Installing : libxcrypt-devel-4.4.18-3.el9.x86_64 43/112 Installing : openblas-0.3.29-1.el9.x86_64 44/112 Installing : openblas-openmp-0.3.29-1.el9.x86_64 45/112 Installing : flexiblas-openblas-openmp-3.0.4-8.el9.x86_64 46/112 Installing : flexiblas-netlib-3.0.4-8.el9.x86_64 47/112 Installing : llvm-filesystem-20.1.8-3.el9.x86_64 48/112 Installing : libstdc++-devel-11.5.0-11.el9.x86_64 49/112 Installing : pcre-utf32-8.44-4.el9.x86_64 50/112 Installing : pcre-cpp-8.44-4.el9.x86_64 51/112 Installing : pcre-utf16-8.44-4.el9.x86_64 52/112 Installing : libstemmer-0-18.585svn.el9.x86_64 53/112 Installing : systemd-rpm-macros-252-55.el9_7.7.noarch 54/112 Installing : python3-setuptools-wheel-53.0.0-15.el9.noarch 55/112 Installing : kmod-libs-28-11.el9.x86_64 56/112 Installing : libnl3-3.11.0-1.el9.x86_64 57/112 Installing : libibverbs-57.0-2.el9.x86_64 58/112 Installing : libpcap-14:1.10.0-4.el9.x86_64 59/112 Installing : python3-pip-wheel-21.3.1-1.el9.noarch 60/112 Installing : python3-3.9.25-2.el9_7.x86_64 61/112 Installing : python3-libs-3.9.25-2.el9_7.x86_64 62/112 Installing : python3-setuptools-53.0.0-15.el9.noarch 63/112 Installing : python3-idna-2.10-7.el9_4.1.noarch 64/112 Installing : python3-numpy-1:1.23.5-1.el9.x86_64 65/112 Installing : boost-numpy3-1.75.0-13.el9_7.x86_64 66/112 Installing : boost-1.75.0-13.el9_7.x86_64 67/112 Installing : python3-pyparsing-2.4.7-9.el9.noarch 68/112 Installing : python3-packaging-20.9-5.el9.noarch 69/112 Installing : python3-rpm-generators-12-9.el9.noarch 70/112 Installing : python3-pysocks-1.7.1-12.el9.noarch 71/112 Installing : python3-six-1.15.0-9.el9.noarch 72/112 Installing : python3-urllib3-1.26.5-6.el9.noarch 73/112 Installing : python3-bson-3.10.1-7.el9.x86_64 74/112 Installing : python3-charset-normalizer-2.0.10-1.el9.noarch 75/112 Installing : make-1:4.3-8.el9.x86_64 76/112 Installing : gcc-11.5.0-11.el9.x86_64 77/112 Running scriptlet: gcc-11.5.0-11.el9.x86_64 77/112 Installing : libquadmath-devel-11.5.0-11.el9.x86_64 78/112 Installing : acl-2.3.1-4.el9.x86_64 79/112 Installing : libedit-3.1-38.20210216cvs.el9.x86_64 80/112 Installing : llvm-libs-20.1.8-3.el9.x86_64 81/112 Installing : snappy-1.1.8-8.el9.x86_64 82/112 Installing : libyaml-0.2.5-7.el9.x86_64 83/112 Installing : libseccomp-2.5.2-2.el9.x86_64 84/112 Installing : dbus-1:1.12.20-8.el9.x86_64 85/112 Installing : systemd-pam-252-55.el9_7.7.x86_64 86/112 Running scriptlet: systemd-252-55.el9_7.7.x86_64 87/112 Installing : systemd-252-55.el9_7.7.x86_64 87/112 Running scriptlet: systemd-252-55.el9_7.7.x86_64 87/112 Installing : dbus-common-1:1.12.20-8.el9.noarch 88/112 Running scriptlet: dbus-common-1:1.12.20-8.el9.noarch 88/112 Created symlink /etc/systemd/system/sockets.target.wants/dbus.socket → /usr/lib/systemd/system/dbus.socket. Created symlink /etc/systemd/user/sockets.target.wants/dbus.socket → /usr/lib/systemd/user/dbus.socket. Running scriptlet: dbus-broker-28-7.el9.x86_64 89/112 Installing : dbus-broker-28-7.el9.x86_64 89/112 Running scriptlet: dbus-broker-28-7.el9.x86_64 89/112 Created symlink /etc/systemd/system/dbus.service → /usr/lib/systemd/system/dbus-broker.service. Created symlink /etc/systemd/user/dbus.service → /usr/lib/systemd/user/dbus-broker.service. Installing : libunwind-1.8.0-2.el9.x86_64 90/112 Installing : gperftools-libs-2.9.1-3.el9.x86_64 91/112 Installing : gperftools-devel-2.9.1-3.el9.x86_64 92/112 Installing : python3-pyyaml-5.4.1-6.el9.x86_64 93/112 Installing : snappy-devel-1.1.8-8.el9.x86_64 94/112 Installing : annobin-12.98-1.el9.x86_64 95/112 Running scriptlet: annobin-12.98-1.el9.x86_64 95/112 Installing : boost-devel-1.75.0-13.el9_7.x86_64 96/112 Installing : gcc-c++-11.5.0-11.el9.x86_64 97/112 Installing : gcc-plugin-annobin-11.5.0-11.el9.x86_64 98/112 Running scriptlet: gcc-plugin-annobin-11.5.0-11.el9.x86_64 98/112 Installing : python3-requests-2.27.1-1.el9.noarch 99/112 Installing : python3-pymongo-3.10.1-7.el9.x86_64 100/112 Installing : python3-devel-3.9.25-2.el9_7.x86_64 101/112 Installing : python3-scons-4.5.2-1.el9.noarch 102/112 Installing : python3-cheetah-3.2.6.post1-1.el9.x86_64 103/112 Installing : libpcap-devel-14:1.10.0-4.el9.x86_64 104/112 Installing : libstemmer-devel-0-18.585svn.el9.x86_64 105/112 Installing : pcre-devel-8.44-4.el9.x86_64 106/112 Installing : yaml-cpp-devel-0.6.3-5.el9.x86_64 107/112 Installing : pyproject-rpm-macros-1.16.2-1.el9.noarch 108/112 Installing : openssl-devel-1:3.5.1-4.el9_7.x86_64 109/112 Installing : valgrind-devel-1:3.25.1-3.el9.x86_64 110/112 Installing : libcurl-devel-7.76.1-34.el9.x86_64 111/112 Installing : zlib-devel-1.2.11-40.el9.x86_64 112/112 Running scriptlet: zlib-devel-1.2.11-40.el9.x86_64 112/112 Verifying : libunwind-1.8.0-2.el9.x86_64 1/112 Verifying : python3-requests-2.27.1-1.el9.noarch 2/112 Verifying : libpcap-14:1.10.0-4.el9.x86_64 3/112 Verifying : libseccomp-2.5.2-2.el9.x86_64 4/112 Verifying : libyaml-0.2.5-7.el9.x86_64 5/112 Verifying : python3-pyparsing-2.4.7-9.el9.noarch 6/112 Verifying : python3-pysocks-1.7.1-12.el9.noarch 7/112 Verifying : python3-pyyaml-5.4.1-6.el9.x86_64 8/112 Verifying : python3-six-1.15.0-9.el9.noarch 9/112 Verifying : snappy-1.1.8-8.el9.x86_64 10/112 Verifying : dbus-broker-28-7.el9.x86_64 11/112 Verifying : dbus-1:1.12.20-8.el9.x86_64 12/112 Verifying : dbus-common-1:1.12.20-8.el9.noarch 13/112 Verifying : libedit-3.1-38.20210216cvs.el9.x86_64 14/112 Verifying : acl-2.3.1-4.el9.x86_64 15/112 Verifying : make-1:4.3-8.el9.x86_64 16/112 Verifying : python3-idna-2.10-7.el9_4.1.noarch 17/112 Verifying : python3-pip-wheel-21.3.1-1.el9.noarch 18/112 Verifying : python3-urllib3-1.26.5-6.el9.noarch 19/112 Verifying : libnl3-3.11.0-1.el9.x86_64 20/112 Verifying : libicu-67.1-10.el9_6.x86_64 21/112 Verifying : kmod-libs-28-11.el9.x86_64 22/112 Verifying : libquadmath-11.5.0-11.el9.x86_64 23/112 Verifying : python3-setuptools-53.0.0-15.el9.noarch 24/112 Verifying : python3-setuptools-wheel-53.0.0-15.el9.noarch 25/112 Verifying : libgfortran-11.5.0-11.el9.x86_64 26/112 Verifying : libibverbs-57.0-2.el9.x86_64 27/112 Verifying : expat-2.5.0-5.el9_7.1.x86_64 28/112 Verifying : systemd-252-55.el9_7.7.x86_64 29/112 Verifying : systemd-pam-252-55.el9_7.7.x86_64 30/112 Verifying : systemd-rpm-macros-252-55.el9_7.7.noarch 31/112 Verifying : python3-3.9.25-2.el9_7.x86_64 32/112 Verifying : python3-libs-3.9.25-2.el9_7.x86_64 33/112 Verifying : flexiblas-openblas-openmp-3.0.4-8.el9.x86_64 34/112 Verifying : libstemmer-0-18.585svn.el9.x86_64 35/112 Verifying : flexiblas-3.0.4-8.el9.x86_64 36/112 Verifying : libmpc-1.2.1-4.el9.x86_64 37/112 Verifying : libxcrypt-devel-4.4.18-3.el9.x86_64 38/112 Verifying : flexiblas-netlib-3.0.4-8.el9.x86_64 39/112 Verifying : python3-packaging-20.9-5.el9.noarch 40/112 Verifying : zlib-devel-1.2.11-40.el9.x86_64 41/112 Verifying : cmake-filesystem-3.26.5-2.el9.x86_64 42/112 Verifying : python3-rpm-generators-12-9.el9.noarch 43/112 Verifying : pcre-utf16-8.44-4.el9.x86_64 44/112 Verifying : python3-rpm-macros-3.9-54.el9.noarch 45/112 Verifying : pcre-cpp-8.44-4.el9.x86_64 46/112 Verifying : pcre-devel-8.44-4.el9.x86_64 47/112 Verifying : pcre-utf32-8.44-4.el9.x86_64 48/112 Verifying : python-rpm-macros-3.9-54.el9.noarch 49/112 Verifying : snappy-devel-1.1.8-8.el9.x86_64 50/112 Verifying : python3-numpy-1:1.23.5-1.el9.x86_64 51/112 Verifying : libicu-devel-67.1-10.el9_6.x86_64 52/112 Verifying : annobin-12.98-1.el9.x86_64 53/112 Verifying : cpp-11.5.0-11.el9.x86_64 54/112 Verifying : libcurl-devel-7.76.1-34.el9.x86_64 55/112 Verifying : libquadmath-devel-11.5.0-11.el9.x86_64 56/112 Verifying : libstdc++-devel-11.5.0-11.el9.x86_64 57/112 Verifying : gcc-11.5.0-11.el9.x86_64 58/112 Verifying : gcc-c++-11.5.0-11.el9.x86_64 59/112 Verifying : gcc-plugin-annobin-11.5.0-11.el9.x86_64 60/112 Verifying : llvm-filesystem-20.1.8-3.el9.x86_64 61/112 Verifying : llvm-libs-20.1.8-3.el9.x86_64 62/112 Verifying : openblas-0.3.29-1.el9.x86_64 63/112 Verifying : openblas-openmp-0.3.29-1.el9.x86_64 64/112 Verifying : valgrind-devel-1:3.25.1-3.el9.x86_64 65/112 Verifying : glibc-devel-2.34-231.el9_7.2.x86_64 66/112 Verifying : glibc-headers-2.34-231.el9_7.2.x86_64 67/112 Verifying : openssl-devel-1:3.5.1-4.el9_7.x86_64 68/112 Verifying : kernel-headers-5.14.0-611.16.1.el9_7.x86_64 69/112 Verifying : boost-1.75.0-13.el9_7.x86_64 70/112 Verifying : boost-atomic-1.75.0-13.el9_7.x86_64 71/112 Verifying : boost-chrono-1.75.0-13.el9_7.x86_64 72/112 Verifying : boost-container-1.75.0-13.el9_7.x86_64 73/112 Verifying : boost-context-1.75.0-13.el9_7.x86_64 74/112 Verifying : boost-contract-1.75.0-13.el9_7.x86_64 75/112 Verifying : boost-coroutine-1.75.0-13.el9_7.x86_64 76/112 Verifying : boost-date-time-1.75.0-13.el9_7.x86_64 77/112 Verifying : boost-devel-1.75.0-13.el9_7.x86_64 78/112 Verifying : boost-fiber-1.75.0-13.el9_7.x86_64 79/112 Verifying : boost-filesystem-1.75.0-13.el9_7.x86_64 80/112 Verifying : boost-graph-1.75.0-13.el9_7.x86_64 81/112 Verifying : boost-iostreams-1.75.0-13.el9_7.x86_64 82/112 Verifying : boost-locale-1.75.0-13.el9_7.x86_64 83/112 Verifying : boost-log-1.75.0-13.el9_7.x86_64 84/112 Verifying : boost-math-1.75.0-13.el9_7.x86_64 85/112 Verifying : boost-nowide-1.75.0-13.el9_7.x86_64 86/112 Verifying : boost-numpy3-1.75.0-13.el9_7.x86_64 87/112 Verifying : boost-program-options-1.75.0-13.el9_7.x86_64 88/112 Verifying : boost-python3-1.75.0-13.el9_7.x86_64 89/112 Verifying : boost-random-1.75.0-13.el9_7.x86_64 90/112 Verifying : boost-regex-1.75.0-13.el9_7.x86_64 91/112 Verifying : boost-serialization-1.75.0-13.el9_7.x86_64 92/112 Verifying : boost-stacktrace-1.75.0-13.el9_7.x86_64 93/112 Verifying : boost-system-1.75.0-13.el9_7.x86_64 94/112 Verifying : boost-test-1.75.0-13.el9_7.x86_64 95/112 Verifying : boost-thread-1.75.0-13.el9_7.x86_64 96/112 Verifying : boost-timer-1.75.0-13.el9_7.x86_64 97/112 Verifying : boost-type_erasure-1.75.0-13.el9_7.x86_64 98/112 Verifying : boost-wave-1.75.0-13.el9_7.x86_64 99/112 Verifying : python3-devel-3.9.25-2.el9_7.x86_64 100/112 Verifying : libpcap-devel-14:1.10.0-4.el9.x86_64 101/112 Verifying : libstemmer-devel-0-18.585svn.el9.x86_64 102/112 Verifying : pyproject-rpm-macros-1.16.2-1.el9.noarch 103/112 Verifying : gperftools-devel-2.9.1-3.el9.x86_64 104/112 Verifying : gperftools-libs-2.9.1-3.el9.x86_64 105/112 Verifying : python3-bson-3.10.1-7.el9.x86_64 106/112 Verifying : python3-charset-normalizer-2.0.10-1.el9.noarch 107/112 Verifying : python3-cheetah-3.2.6.post1-1.el9.x86_64 108/112 Verifying : python3-pymongo-3.10.1-7.el9.x86_64 109/112 Verifying : python3-scons-4.5.2-1.el9.noarch 110/112 Verifying : yaml-cpp-0.6.3-5.el9.x86_64 111/112 Verifying : yaml-cpp-devel-0.6.3-5.el9.x86_64 112/112 Installed products updated. Installed: acl-2.3.1-4.el9.x86_64 annobin-12.98-1.el9.x86_64 boost-1.75.0-13.el9_7.x86_64 boost-atomic-1.75.0-13.el9_7.x86_64 boost-chrono-1.75.0-13.el9_7.x86_64 boost-container-1.75.0-13.el9_7.x86_64 boost-context-1.75.0-13.el9_7.x86_64 boost-contract-1.75.0-13.el9_7.x86_64 boost-coroutine-1.75.0-13.el9_7.x86_64 boost-date-time-1.75.0-13.el9_7.x86_64 boost-devel-1.75.0-13.el9_7.x86_64 boost-fiber-1.75.0-13.el9_7.x86_64 boost-filesystem-1.75.0-13.el9_7.x86_64 boost-graph-1.75.0-13.el9_7.x86_64 boost-iostreams-1.75.0-13.el9_7.x86_64 boost-locale-1.75.0-13.el9_7.x86_64 boost-log-1.75.0-13.el9_7.x86_64 boost-math-1.75.0-13.el9_7.x86_64 boost-nowide-1.75.0-13.el9_7.x86_64 boost-numpy3-1.75.0-13.el9_7.x86_64 boost-program-options-1.75.0-13.el9_7.x86_64 boost-python3-1.75.0-13.el9_7.x86_64 boost-random-1.75.0-13.el9_7.x86_64 boost-regex-1.75.0-13.el9_7.x86_64 boost-serialization-1.75.0-13.el9_7.x86_64 boost-stacktrace-1.75.0-13.el9_7.x86_64 boost-system-1.75.0-13.el9_7.x86_64 boost-test-1.75.0-13.el9_7.x86_64 boost-thread-1.75.0-13.el9_7.x86_64 boost-timer-1.75.0-13.el9_7.x86_64 boost-type_erasure-1.75.0-13.el9_7.x86_64 boost-wave-1.75.0-13.el9_7.x86_64 cmake-filesystem-3.26.5-2.el9.x86_64 cpp-11.5.0-11.el9.x86_64 dbus-1:1.12.20-8.el9.x86_64 dbus-broker-28-7.el9.x86_64 dbus-common-1:1.12.20-8.el9.noarch expat-2.5.0-5.el9_7.1.x86_64 flexiblas-3.0.4-8.el9.x86_64 flexiblas-netlib-3.0.4-8.el9.x86_64 flexiblas-openblas-openmp-3.0.4-8.el9.x86_64 gcc-11.5.0-11.el9.x86_64 gcc-c++-11.5.0-11.el9.x86_64 gcc-plugin-annobin-11.5.0-11.el9.x86_64 glibc-devel-2.34-231.el9_7.2.x86_64 glibc-headers-2.34-231.el9_7.2.x86_64 gperftools-devel-2.9.1-3.el9.x86_64 gperftools-libs-2.9.1-3.el9.x86_64 kernel-headers-5.14.0-611.16.1.el9_7.x86_64 kmod-libs-28-11.el9.x86_64 libcurl-devel-7.76.1-34.el9.x86_64 libedit-3.1-38.20210216cvs.el9.x86_64 libgfortran-11.5.0-11.el9.x86_64 libibverbs-57.0-2.el9.x86_64 libicu-67.1-10.el9_6.x86_64 libicu-devel-67.1-10.el9_6.x86_64 libmpc-1.2.1-4.el9.x86_64 libnl3-3.11.0-1.el9.x86_64 libpcap-14:1.10.0-4.el9.x86_64 libpcap-devel-14:1.10.0-4.el9.x86_64 libquadmath-11.5.0-11.el9.x86_64 libquadmath-devel-11.5.0-11.el9.x86_64 libseccomp-2.5.2-2.el9.x86_64 libstdc++-devel-11.5.0-11.el9.x86_64 libstemmer-0-18.585svn.el9.x86_64 libstemmer-devel-0-18.585svn.el9.x86_64 libunwind-1.8.0-2.el9.x86_64 libxcrypt-devel-4.4.18-3.el9.x86_64 libyaml-0.2.5-7.el9.x86_64 llvm-filesystem-20.1.8-3.el9.x86_64 llvm-libs-20.1.8-3.el9.x86_64 make-1:4.3-8.el9.x86_64 openblas-0.3.29-1.el9.x86_64 openblas-openmp-0.3.29-1.el9.x86_64 openssl-devel-1:3.5.1-4.el9_7.x86_64 pcre-cpp-8.44-4.el9.x86_64 pcre-devel-8.44-4.el9.x86_64 pcre-utf16-8.44-4.el9.x86_64 pcre-utf32-8.44-4.el9.x86_64 pyproject-rpm-macros-1.16.2-1.el9.noarch python-rpm-macros-3.9-54.el9.noarch python3-3.9.25-2.el9_7.x86_64 python3-bson-3.10.1-7.el9.x86_64 python3-charset-normalizer-2.0.10-1.el9.noarch python3-cheetah-3.2.6.post1-1.el9.x86_64 python3-devel-3.9.25-2.el9_7.x86_64 python3-idna-2.10-7.el9_4.1.noarch python3-libs-3.9.25-2.el9_7.x86_64 python3-numpy-1:1.23.5-1.el9.x86_64 python3-packaging-20.9-5.el9.noarch python3-pip-wheel-21.3.1-1.el9.noarch python3-pymongo-3.10.1-7.el9.x86_64 python3-pyparsing-2.4.7-9.el9.noarch python3-pysocks-1.7.1-12.el9.noarch python3-pyyaml-5.4.1-6.el9.x86_64 python3-requests-2.27.1-1.el9.noarch python3-rpm-generators-12-9.el9.noarch python3-rpm-macros-3.9-54.el9.noarch python3-scons-4.5.2-1.el9.noarch python3-setuptools-53.0.0-15.el9.noarch python3-setuptools-wheel-53.0.0-15.el9.noarch python3-six-1.15.0-9.el9.noarch python3-urllib3-1.26.5-6.el9.noarch snappy-1.1.8-8.el9.x86_64 snappy-devel-1.1.8-8.el9.x86_64 systemd-252-55.el9_7.7.x86_64 systemd-pam-252-55.el9_7.7.x86_64 systemd-rpm-macros-252-55.el9_7.7.noarch valgrind-devel-1:3.25.1-3.el9.x86_64 yaml-cpp-0.6.3-5.el9.x86_64 yaml-cpp-devel-0.6.3-5.el9.x86_64 zlib-devel-1.2.11-40.el9.x86_64 Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1544054400 Wrote: /builddir/build/SRPMS/mongodb-4.0.3-3.el9.src.rpm No matches found for the following disable plugin patterns: local, spacewalk, versionlock Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Copr repository 126 kB/s | 2.2 kB 00:00 Additional repo copr_aminasyan_el9_collection 17 kB/s | 2.2 kB 00:00 Red Hat Enterprise Linux - BaseOS 143 kB/s | 4.1 kB 00:00 Red Hat Enterprise Linux - AppStream 176 kB/s | 4.5 kB 00:00 Red Hat Enterprise Linux - CodeReady Linux Buil 134 kB/s | 4.5 kB 00:00 Extra Packages for Enterprise Linux 9 - x86_64 50 kB/s | 13 kB 00:00 Package boost-devel-1.75.0-13.el9_7.x86_64 is already installed. Package gcc-c++-11.5.0-11.el9.x86_64 is already installed. Package gperftools-devel-2.9.1-3.el9.x86_64 is already installed. Package libcurl-devel-7.76.1-34.el9.x86_64 is already installed. Package libpcap-devel-14:1.10.0-4.el9.x86_64 is already installed. Package libstemmer-devel-0-18.585svn.el9.x86_64 is already installed. Package openssl-devel-1:3.5.1-4.el9_7.x86_64 is already installed. Package pcre-devel-8.44-4.el9.x86_64 is already installed. Package python3-cheetah-3.2.6.post1-1.el9.x86_64 is already installed. Package python3-devel-3.9.25-2.el9_7.x86_64 is already installed. Package python3-pymongo-3.10.1-7.el9.x86_64 is already installed. Package python3-requests-2.27.1-1.el9.noarch is already installed. Package python3-scons-4.5.2-1.el9.noarch is already installed. Package python3-pyyaml-5.4.1-6.el9.x86_64 is already installed. Package snappy-devel-1.1.8-8.el9.x86_64 is already installed. Package systemd-252-55.el9_7.7.x86_64 is already installed. Package valgrind-devel-1:3.25.1-3.el9.x86_64 is already installed. Package yaml-cpp-devel-0.6.3-5.el9.x86_64 is already installed. Package zlib-devel-1.2.11-40.el9.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! Finish: build setup for mongodb-4.0.3-3.el9.src.rpm Start: rpmbuild mongodb-4.0.3-3.el9.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1544054400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tOKGQw + 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 -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 -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 + 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.c2nqfz + 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 -m64 -march=x86-64-v2 -mtune=generic -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 -m64 -march=x86-64-v2 -mtune=generic -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" + cat ++ cat build-options + scons-3 core tools -j4 --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=on --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.5.2 python version: 3 9 25 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 x86_64 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... yes 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... yes Checking if linker supports -Wl,-z,relro... yes Checking for glibc with non-broken _FORTIFY_SOURCE...yes Checking if C compiler supports -fno-builtin-memcmp... yes Checking for storage class thread_local yes Checking for C++14 std::enable_if_t support...yes Checking 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... no 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 Checking for C function fallocate()... no Checking for C function sync_file_range()... no Checking for C header file x86intrin.h... yes Checking for C header file arm_neon.h... no scons: done reading SConscript files. scons: Building targets ... /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --header build/fedora/mongo/db/generic_cursor_gen.h --output build/fedora/mongo/db/generic_cursor_gen.cpp src/mongo/db/generic_cursor.idl Creating 'build/fedora/mongo/config.h' /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --header build/fedora/mongo/db/kill_sessions_gen.h --output build/fedora/mongo/db/kill_sessions_gen.cpp src/mongo/db/kill_sessions.idl /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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/idwrapper.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.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/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/bson/util/builder.h:47, from src/mongo/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 { | ^~~~~ 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: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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/plan_cache.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.c src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bson_depth.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/libexplain_options.a build/fedora/mongo/db/query/explain_options.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libexplain_options.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::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 { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/parallel.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/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 In file included from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/jsstringwrapper.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bmpset.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/exception.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/global.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_legacy_api.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/string_map.h:36, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/posix_fadvise.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/stubdata/stubdata.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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: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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 /usr/include/string.h:535, 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 long)' 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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: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 In file included from src/mongo/db/matcher/expression_parser.h: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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/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/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 { | ^~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.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 = long int; 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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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::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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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()), | ^~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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/plan_cache.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 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/plan_cache.h: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/db/matcher/expression_parser.h: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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_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 { | ^~~~~ In file included from src/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/plan_cache.h: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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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/plan_cache.h: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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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, 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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.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 = unsigned int; 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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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_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/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/matcher/expression_parser.h: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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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_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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234: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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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 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_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/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/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 src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from /usr/include/string.h:535, 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: /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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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; long 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h: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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::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_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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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/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/db/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move 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/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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [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: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 = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(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/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 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_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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_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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/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/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 In file included from src/mongo/util/string_map.h:36, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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_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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-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_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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | 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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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 { | ^~~~~ 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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/schema/expression_internal_schema_fmod.h:49: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/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; long 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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; long 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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/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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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/matcher/expression_parser.h: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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 /usr/include/string.h:535, 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 long*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned long*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned long)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 long*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned long*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned long)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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 gcc -o build/fedora/third_party/wiredtiger/src/checksum/x86/crc32-x86.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/checksum/x86/crc32-x86.c 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()), | ^~~~~~~ cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umath.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 Creating 'build/fedora/third_party/wiredtiger/wiredtiger.h' g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_parameters.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/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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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_parameters.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_parameters.h:30, from src/mongo/db/storage/wiredtiger/wiredtiger_parameters.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/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.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 = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; 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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_init.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/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_server_status.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 { | ^~~~~ g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_options_init.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/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_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.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_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/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/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_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); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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/db/curop.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return 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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/storage/wiredtiger/wiredtiger_record_store_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.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/curop.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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); | ~~~~~~~~~^~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/catalog/collection_options.h:36, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/legacy_reply.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/db/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.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/storage/wiredtiger/wiredtiger_record_store_mongod.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/wiredtiger/wiredtiger_record_store_mongod.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/catalog/collection.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_server_status.h:33, from src/mongo/db/storage/wiredtiger/wiredtiger_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/wiredtiger/wiredtiger_record_store_mongod.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/wiredtiger/wiredtiger_record_store_mongod.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_init.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/db/catalog/collection.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/shared_library.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/db/matcher/expression_parser.h: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/wiredtiger/wiredtiger_record_store_mongod.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/message.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/protocol.cpp ar rcsTD build/fedora/mongo/db/storage/wiredtiger/libstorage_wiredtiger.a build/fedora/mongo/db/storage/wiredtiger/wiredtiger_init.o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_options_init.o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_parameters.o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_server_status.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/wiredtiger/libstorage_wiredtiger.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/object_check.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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uset_props.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libaccumulator.a src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/wiredtiger/src/support/hash_fnv.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/hash_fnv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/wiredtiger/src/os_posix/os_map.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_map.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/os_common/os_abort.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_abort.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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/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 In file included from src/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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/util/libbackground_job.a build/fedora/mongo/util/background.o Skipping ranlib for thin archive build/fedora/mongo/util/libbackground_job.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/config/config_ext.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_ext.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/schema/schema_util.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_util.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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, 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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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, 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::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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 Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthmongod.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servnotf.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/wiredtiger/src/reconcile/rec_track.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_track.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/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 { | ^~~~~ g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.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 { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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/storage/index_entry_comparison.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:34, from src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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/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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to 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/db/matcher/expression_leaf.h:234: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 = 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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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/storage/index_entry_comparison.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:34, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_index.h:38, from src/mongo/db/storage/wiredtiger/wiredtiger_index.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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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.cpp: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() { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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()), | ^~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_mozjs.cpp src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/third_party/libshim_mozjs.a build/fedora/third_party/shim_mozjs.o Skipping ranlib for thin archive build/fedora/third_party/libshim_mozjs.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 x86_64 --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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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 /usr/include/string.h:535, 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 '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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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()), | ^~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/btree/bt_vrfy.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_vrfy.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --header build/fedora/mongo/db/repl/dbcheck_gen.h --output build/fedora/mongo/db/repl/dbcheck_gen.cpp src/mongo/db/repl/dbcheck.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/connection_pool.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/pipeline/value.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 { | ^~~~~~~~~~~~ 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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 gcc -o build/fedora/third_party/wiredtiger/src/conn/conn_sweep.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_sweep.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move 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/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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 { | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h: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 ar rcsTD build/fedora/mongo/db/storage/kv/libkv_engine.a build/fedora/mongo/db/storage/kv/kv_database_catalog_entry.o src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call Skipping ranlib for thin archive build/fedora/mongo/db/storage/kv/libkv_engine.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/cache/cache_las.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cache/cache_las.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 g++ -o build/fedora/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src22.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/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 { | ^~~~~ 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/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 ar rcsTD build/fedora/mongo/db/libop_observer_impl.a build/fedora/mongo/db/op_observer_impl.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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call Skipping ranlib for thin archive build/fedora/mongo/db/libop_observer_impl.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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: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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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/x86_64/linux/build/Unified_cpp_js_src22.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/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:22, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsapi.cpp:25, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsapi.cpp:25, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src22.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/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src22.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/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src22.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/jsalloc.h:18, from src/third_party/mozjs-45/extract/js/src/jsapi.h:24, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsapi.cpp:25, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidiwrt.c src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/mongo.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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 gcc -o build/fedora/third_party/wiredtiger/src/session/session_dhandle.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/session/session_dhandle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 ar rcsTD build/fedora/mongo/db/repl/libcollection_cloner.a build/fedora/mongo/db/repl/collection_cloner.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libcollection_cloner.a g++ -o build/fedora/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src5.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/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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 | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/errno_util.cpp In file included from src/third_party/mozjs-45/extract/js/src/gc/Allocator.cpp:18, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 g++ -o build/fedora/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src28.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/vm/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/vm/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/vm/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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/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/x86_64/linux/build/Unified_cpp_js_src28.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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/vm/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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()), | ^~~~~~~ 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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ 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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src28.cpp:38: 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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src28.cpp:38: 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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src28.cpp:38: 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/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/serv.cpp In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~ 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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/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/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/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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_lmb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 /usr/include/string.h:535, 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: /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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: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, 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src25.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 { | ^~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/third_party/mozjs-45/extract/js/src/jsscript.cpp:52, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src25.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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jit/BaselineJIT.h:12, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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 In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscript.h:14, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/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/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/s/libsharding_task_executor.a build/fedora/mongo/s/sharding_task_executor.o 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 | ^~~~~~~~~~~~~~ Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_task_executor.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.c 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 | ^~~~~~~~~~~~~~ cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 | ^~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 = long 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 = long unsigned int; long 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 = long unsigned int; long 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 = long unsigned int; long 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 | ^~~~~~~~~~~~~~ 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 /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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/shell/mongo.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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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() { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 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/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/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/lsm/lsm_cursor.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_cursor.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/third_party/asio-master/asio/include/asio/impl/src.hpp:52, from src/third_party/asio-master/asio/src/asio.cpp:11: src/third_party/asio-master/asio/include/asio/detail/impl/socket_ops.ipp: In function 'asio::detail::socket_ops::inet_ntop(int, void const*, char*, unsigned long, unsigned long, std::error_code&)': src/third_party/asio-master/asio/include/asio/detail/impl/socket_ops.ipp:2101:29: warning: '%lu' directive writing between 1 and 20 bytes into a region of size 16 [-Wformat-overflow=] 2101 | sprintf(if_name + 1, "%lu", scope_id); | ^~~ src/third_party/asio-master/asio/include/asio/detail/impl/socket_ops.ipp:2101:28: note: directive argument in the range [1, 18446744073709551615] 2101 | sprintf(if_name + 1, "%lu", scope_id); | ^~~~~ In file included from /usr/include/stdio.h:900, from /usr/include/c++/11/cstdio:42, from /usr/include/c++/11/ext/string_conversions.h:43, from /usr/include/c++/11/bits/basic_string.h:6608, from /usr/include/c++/11/string:55, from src/third_party/asio-master/asio/include/asio/impl/error.ipp:19, from src/third_party/asio-master/asio/include/asio/impl/src.hpp:22, from src/third_party/asio-master/asio/src/asio.cpp:11: /usr/include/bits/stdio2.h:30:34: note: '__sprintf_chk' output between 2 and 21 bytes into a destination of size 16 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/wiredtiger/src/os_common/os_fstream_stdio.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_fstream_stdio.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 { | ^~~~~~~~~~~~ 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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 ar rcsTD build/fedora/mongo/db/storage/mmap_v1/liblogfile.a build/fedora/mongo/db/storage/mmap_v1/logfile.o src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/liblogfile.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/timestamp.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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 gcc -o build/fedora/third_party/wiredtiger/src/conn/conn_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/regexp.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184: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_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return 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 = 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_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ ar rcsTD build/fedora/mongo/rpc/liblegacy_reply.a build/fedora/mongo/rpc/legacy_reply.o build/fedora/mongo/rpc/legacy_reply_builder.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/rpc/liblegacy_reply.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/block/block_map.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_map.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/read_preference.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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/mutable/document.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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return 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::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return 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, 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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 = 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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/client/libread_preference.a build/fedora/mongo/client/read_preference.o Skipping ranlib for thin archive build/fedora/mongo/client/libread_preference.a gcc -o build/fedora/third_party/wiredtiger/src/block/block_open.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_open.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h: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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 x86_64 --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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_fs.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_fs.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/global_initializer.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/libabstract_oplog_fetcher.a build/fedora/mongo/db/repl/abstract_oplog_fetcher.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/repl/libabstract_oplog_fetcher.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 Skipping ranlib for thin archive build/fedora/mongo/db/repl/libtopology_coordinator.a src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/propsvec.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/idl/libidl_parser.a build/fedora/mongo/idl/idl_parser.o Skipping ranlib for thin archive build/fedora/mongo/idl/libidl_parser.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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 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/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::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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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/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 { | ^~~~~ 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.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 = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; 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 = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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, 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_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 ar rcsTD build/fedora/mongo/s/catalog/libdist_lock_catalog_impl.a build/fedora/mongo/s/catalog/dist_lock_catalog_impl.o In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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()), | ^~~~~~~ Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libdist_lock_catalog_impl.a src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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/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/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 x86_64 --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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/db/matcher/expression_parser.h: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 src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; 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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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 { | ^~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~ 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 { | ^~~~~ 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/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/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); | ~~~~~~~~~^~~ In file included from src/mongo/db/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/matcher/expression_leaf.h:234:25: note: remove 'std::move' call 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::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return 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, 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::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return 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::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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::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: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/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/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 = 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_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/plan_cache.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 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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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, 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, 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 unsigned int; 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 unsigned 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/matcher/expression_parser.h: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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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/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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move 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/plan_cache.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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-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: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/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/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/plan_cache.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/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return 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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/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, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~~~~ 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/plan_cache.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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/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 { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/db/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/plan_cache.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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/util/mongoutils/str.h:43, from src/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::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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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/db/matcher/expression_parser.h: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/db/matcher/expression_parser.h: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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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 { | ^~~~~ In file included from /usr/include/string.h:535, 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 long*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned long*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned long)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 long*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned long*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned long*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned long)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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.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 In file included from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(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/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 In file included from src/mongo/db/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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 { | ^~~~~ In file included from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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/query/plan_cache.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 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, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | 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/util/mongoutils/str.h:43, from src/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 In file included from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~~~~~~~~ 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/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/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move 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/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_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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/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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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() { | ^~~~~ In file included from src/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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::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, 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; 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 = unsigned int; 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/db/matcher/expression_parser.h: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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/plan_cache.h: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 In file included from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | 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/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~~~~ 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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_begin_transaction_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_begin_transaction_block.cpp 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return 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 = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return 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, 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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 = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/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_tree.h:155: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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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, 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, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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() { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/s/unset_sharding_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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, 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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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, 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ 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 src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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, 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; 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/plan_cache.h: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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/s/set_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/plan_cache.h: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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return 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::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* 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/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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_tree.h:126: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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/matcher/expression_parser.h: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/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 x86_64 --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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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, 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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* 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/plan_cache.h: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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/s/flush_database_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [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:212: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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; 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::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; 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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.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 = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return 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::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/plan_cache.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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/s/libcommands_db_s.a 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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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 { | ^~~~~ 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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 In file included from src/mongo/db/matcher/expression_parser.h: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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/mongo/db/pipeline/value.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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 { | ^~~~~ 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/s/libtype_shard_identity.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/packing/pack_api.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/packing/pack_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/dbref.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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/command_reply.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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/meta/meta_track.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_track.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/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 { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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/util/mongoutils/str.h:43, from 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/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 { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/plan_cache.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/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ In file included from src/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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: 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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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: 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 = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::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 = 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_parser.h: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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/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 { | ^~~~~ 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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_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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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_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/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/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::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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::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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return 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, 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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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: 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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:535, 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/wiredtiger/src/btree/bt_handle.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_handle.c 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/libaudit.a build/fedora/mongo/db/audit.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/db/libaudit.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/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/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/nativefunction.cpp In file included from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.cpp:23, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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::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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ 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/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move 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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move 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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move 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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/RegExpObject.cpp:23, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/RegExpObject.cpp:23, from src/third_party/mozjs-45/platform/x86_64/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/RegExpObject.cpp:23, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ 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/RegExpObject.cpp:23, from src/third_party/mozjs-45/platform/x86_64/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 = long 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/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ In file included from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/async_client.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184: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_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/plan_cache.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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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/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, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvisci.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/minkey.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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 { | ^~~~~ gcc -o build/fedora/third_party/wiredtiger/src/os_common/os_strtouq.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_strtouq.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/linenoise_utf8.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uscript_props.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locutil.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uarrsort.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/catalog/libindex_create.a build/fedora/mongo/db/catalog/index_create.o 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libindex_create.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from /usr/include/string.h:535, 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) 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/icuplug.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usc_impl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normalizer2.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestriebuilder.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbinode.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dictbe.cpp gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unisetspan.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/icudataver.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset_props.cpp gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/parsepos.cpp gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvdisp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/loadednormalizer2impl.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifunct.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/filterednormalizer2.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvbocu.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servlkf.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uidna.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2_builder.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustack.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from /usr/include/string.h:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uchriter.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase_locale.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uiter.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbisetb.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidi_props.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucasemap.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_props.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc_keytype.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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/wiredtiger/src/btree/bt_upgrade.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_upgrade.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 Using tempfile /tmp/tmpfy7xki7z.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/tmpfy7xki7z.lnk 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 Skipping ranlib for thin archive build/fedora/third_party/icu4c-57.1/source/libicu_common.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 Skipping ranlib for thin archive build/fedora/mongo/db/repl/libscatter_gather.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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of 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/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 | ^~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/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/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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ 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 | ^~~~~~~~~~~~~~~~~~~~~~ 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/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 | ^~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* 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/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 | ^~~~~~~~~~~~~~ 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/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/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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 In file included from src/mongo/db/matcher/expression_text_base.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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move 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/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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 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/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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 gcc -o build/fedora/third_party/wiredtiger/src/support/rand.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/rand.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/os_common/filename.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/filename.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/chunk_version.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/logstream_builder.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_yield.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_yield.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/stacktrace_posix.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/objectwrapper.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/proxyscope.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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 gcc -o build/fedora/third_party/wiredtiger/src/lsm/lsm_tree.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_tree.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/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 { | ^~~~~ gcc -o build/fedora/third_party/wiredtiger/src/lsm/lsm_manager.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/lsm/lsm_manager.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/transport_layer.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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ gcc -o build/fedora/third_party/wiredtiger/src/block/block_compact.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_compact.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h: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: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 In file included from src/mongo/db/matcher/expression_parser.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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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: 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 = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/wiredtiger/src/cursor/cur_config.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_config.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 { | ^~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/repl/libdrop_pending_collection_reaper.a build/fedora/mongo/db/repl/drop_pending_collection_reaper.o src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdrop_pending_collection_reaper.a In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/utils.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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return 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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::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 { | ^~~~~ In file included from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/plan_cache.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 In file included from src/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, 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/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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 /usr/include/string.h:535, from /usr/include/boost/range/detail/implementation_help.hpp:18, from /usr/include/boost/range/end.hpp:20, from /usr/include/boost/algorithm/string/trim.hpp:17, from /usr/include/boost/algorithm/string.hpp:19, from src/mongo/db/repl/repl_set_commands.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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/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 { | ^~~~~ In file included from src/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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.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 = 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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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()), | ^~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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:190: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 = 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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/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 { | ^~~~~ In file included from src/mongo/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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [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/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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; 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::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::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 gcc -o build/fedora/third_party/wiredtiger/src/conn/api_strerror.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/api_strerror.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return 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 ar rcsTD build/fedora/mongo/util/concurrency/libthread_pool.a build/fedora/mongo/util/concurrency/thread_pool.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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 Skipping ranlib for thin archive build/fedora/mongo/util/concurrency/libthread_pool.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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()), | ^~~~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/calendar.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/uri.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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()) { | ^~ | & src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h: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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to 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 { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src19.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~ 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src11.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src19.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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src19.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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src19.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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 = long 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/x64/Bailouts-x64.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 gcc -o build/fedora/third_party/wiredtiger/src/log/log_slot.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/log/log_slot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/fetcher.cpp 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/x86_64/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/x86_64/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 | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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 = long 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/x86_64/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 | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 /usr/include/string.h:535, 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 copying between 0 and 8 bytes from a string of length 8 [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bsonobjbuilder.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/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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/config/config_def.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_def.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ Skipping ranlib for thin archive build/fedora/mongo/util/libfail_point.a src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/base.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/shim_timelib.cpp ar rcsTD build/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/cursor/cur_bulk.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_bulk.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/cursor/cur_file.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_file.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, 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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch x86_64 --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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/plan_cache.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 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 gcc -o build/fedora/third_party/wiredtiger/src/cursor/cur_join.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_join.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/plan_cache.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_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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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 constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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 destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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 member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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 member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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 member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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: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/plan_cache.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 member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object 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/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/object.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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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/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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.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/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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /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') 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/librecord_store_v1.a gcc -o build/fedora/third_party/wiredtiger/src/btree/bt_sync.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_sync.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ /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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/bson.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/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/legacy_request.cpp gcc -o build/fedora/third_party/wiredtiger/src/meta/meta_turtle.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/meta/meta_turtle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return 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::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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, 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/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/mongo/rpc/liblegacy_request.a build/fedora/mongo/rpc/legacy_request.o build/fedora/mongo/rpc/legacy_request_builder.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/rpc/liblegacy_request.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/dbdirectclient_factory.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/plan_cache.h: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/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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_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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ In file included from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/storage/wiredtiger/wiredtiger_recovery_unit.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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/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/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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/bson/timestamp.h:31, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/curop.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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/curop.h:35, from src/mongo/db/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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/bson/timestamp.h:31, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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 { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/libreplication_consistency_markers_idl.a build/fedora/mongo/db/repl/replication_consistency_markers_gen.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/repl/libreplication_consistency_markers_idl.a gcc -o build/fedora/third_party/wiredtiger/src/conn/conn_api.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/conn/conn_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/storage/wiredtiger/wiredtiger_prepare_conflict.h:32, from src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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()) { | ^ | & In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/pipeline/libexpression.a build/fedora/mongo/db/pipeline/expression.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libexpression.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/json.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h: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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from 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/matcher/expression_parser.h: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/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~ 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/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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_getenv.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_getenv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_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::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256: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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/matcher/expression_parser.h: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::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h: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 gcc -o build/fedora/third_party/wiredtiger/src/schema/schema_rename.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_rename.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_priv.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_priv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 ar rcsTD build/fedora/mongo/rpc/libaudit_metadata.a build/fedora/mongo/rpc/metadata/audit_metadata.o In file included from src/mongo/db/matcher/expression_parser.h: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 Skipping ranlib for thin archive build/fedora/mongo/rpc/libaudit_metadata.a src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = 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/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/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-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:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 In file included from src/mongo/db/matcher/expression_parser.h: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::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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, 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/mongo/db/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp gcc -o build/fedora/third_party/wiredtiger/src/block/block_ckpt.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_ckpt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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:900, 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:54:10: note: '__snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/astro.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/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/wiredtiger/wiredtiger_session_cache.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.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 { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.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 { | ^~~~~~~~~~~~ gcc -o build/fedora/third_party/wiredtiger/src/btree/row_srch.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/row_srch.c src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ 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/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.c 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 gcc -o build/fedora/third_party/wiredtiger/src/btree/bt_stat.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_stat.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.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/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 { | ^~~~~~~~~~~~ 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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/engine.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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 gcc -o build/fedora/third_party/wiredtiger/src/os_common/os_fhandle.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_fhandle.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/session/session_api.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/session/session_api.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/indiancal.cpp g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move 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/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::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.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()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/shard_util.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/dbcollection.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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from /usr/include/string.h:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 ar rcsTD build/fedora/mongo/util/libntservice.a build/fedora/mongo/util/ntservice.o 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 Skipping ranlib for thin archive build/fedora/mongo/util/libntservice.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 { | ^~~~~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/matcher/expression_parser.h: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 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 gcc -o build/fedora/third_party/wiredtiger/src/schema/schema_create.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_create.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/os_common/os_alloc.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_common/os_alloc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move 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.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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.cpp: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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() { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return 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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return 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::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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return 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::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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; 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::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with 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::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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, 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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 g++ -o build/fedora/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src4.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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/mongo/db/matcher/expression_parser.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.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 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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/wiredtiger/src/support/scratch.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/scratch.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ 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/x86_64/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/x86_64/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/x86_64/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/x86_64/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* 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/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/x86_64/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 | ^~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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/x86_64/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 | ^~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 = long 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 = long unsigned int; long 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 = long unsigned int; long 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 = long unsigned int; long 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; long 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; long 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; long 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 | ^~~~~~~~~~~~~~ In file included from /usr/include/string.h:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/dbclient_connection.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_dlopen.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_dlopen.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 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/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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/plan_cache.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/plan_cache.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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: 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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()), | ^~~~~~~ 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:200:22: note: in a call to non-static 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 unsigned 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::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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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/plan_cache_commands.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h: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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/db/matcher/expression_parser.h: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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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() { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; 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::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/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/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/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/matcher/expression_parser.h: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/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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/db/pipeline/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/lock_info.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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.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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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::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::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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() { | ^~~~~ In file included from /usr/include/string.h:535, 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: src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 { | ^~~~~ /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::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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/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::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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 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/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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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::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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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: In instantiation of 'class mongo::UnorderedFastKeyTable, 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; 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 = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, 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::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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/config/config_collapse.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/config/config_collapse.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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()), | ^~~~~~~ In file included from src/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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h: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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/exec/stagedebug_cmd.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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/plan_cache.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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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, 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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: 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; 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 = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, 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/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, 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 { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/commands/libstandalone.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 In file included from src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_parser.h: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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/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 { | ^~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/schema/schema_worker.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_worker.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::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/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 gcc -o build/fedora/third_party/wiredtiger/src/cursor/cur_table.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/cursor/cur_table.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/authenticate.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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h: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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_entry.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/chunk_manager.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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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() { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; 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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long 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, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member 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_text_base.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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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:535, 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, int)mongo::StringBuilderImpl&' at src/mongo/bson/util/builder.h:520:19, inlined from 'mongo::StringBuilderImpl::operator<<(unsigned long)' at src/mongo/bson/util/builder.h:411:30, inlined from 'mongoutils::str::stream::operator<< (unsigned 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 /usr/include/string.h:535, 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 ar rcsTD build/fedora/mongo/db/commands/libmongod_fcv.a build/fedora/mongo/db/commands/feature_compatibility_version.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libmongod_fcv.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_path.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_path.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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/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 { | ^~~~~ 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 | ^~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 = long 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; long 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; long 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; long 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; long 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; long 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; long 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 | ^~~~~~~~~~~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 gcc -o build/fedora/third_party/wiredtiger/src/block/block_slvg.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_slvg.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 | ^~~~~~~~ gcc -o build/fedora/third_party/wiredtiger/src/btree/bt_delete.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_delete.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h: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 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 | ^~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 | ^~~~~~~~~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/support/hex.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/hex.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/btree/bt_random.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/btree/bt_random.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/extract/js/src/perf/pm_stub.cpp 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 gcc -o build/fedora/third_party/wiredtiger/src/async/async_op.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/async/async_op.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/libserver_options.a build/fedora/mongo/db/server_options_helpers.o Skipping ranlib for thin archive build/fedora/mongo/db/libserver_options.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 /usr/include/string.h:535, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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() { | ^~~~~ In file included from /usr/include/string.h:535, 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: src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /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::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/shard_id.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 /usr/include/string.h:535, 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 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/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__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 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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; 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, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::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:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.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 = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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 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 src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from 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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 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 { | ^~~~~~~ ar rcsTD build/fedora/mongo/db/libmongod_options.a build/fedora/mongo/db/mongod_options.o 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 Skipping ranlib for thin archive build/fedora/mongo/db/libmongod_options.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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 { | ^~~~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/wiredtiger/src/reconcile/rec_write.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/reconcile/rec_write.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/value.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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 /usr/include/string.h:535, 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/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/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/wiredtiger/wiredtiger_record_store.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.h:106:12: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/storage/wiredtiger/wiredtiger_record_store.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/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.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/storage/wiredtiger/wiredtiger_record_store.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/storage/wiredtiger/wiredtiger_record_store.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/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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/wiredtiger/wiredtiger_record_store.h:39, from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.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 { | ^~~~~ ar rcsTD build/fedora/mongo/db/commands/libfsync_locked.a build/fedora/mongo/db/commands/fsync_locked.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/commands/libfsync_locked.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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/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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthprivilege.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/storage/wiredtiger/wiredtiger_record_store.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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); | ~~~~~~~~~^~~ In file included from src/mongo/db/matcher/expression_parser.h: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_leaf.h:344:25: note: remove 'std::move' call 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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 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/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 { | ^~~~~ In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move 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/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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/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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move 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/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 { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* 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/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::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; 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:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [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 /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/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 { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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, 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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/wiredtiger/src/schema/schema_open.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/schema/schema_open.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/decimal128.cpp gcc -o build/fedora/third_party/wiredtiger/src/block/block_read.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_read.c ar rcsTD build/fedora/third_party/s2/util/math/libmath.a build/fedora/third_party/s2/util/math/mathutil.o 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/s2/util/math/libmath.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from 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 { | ^~~~~~~~~~~~ gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_sleep.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_sleep.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 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 { | ^~~~~~~~ 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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from 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/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src18.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 { | ^~~~~ 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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/liboplog_hack.a build/fedora/mongo/db/storage/oplog_hack.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/liboplog_hack.a 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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/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/x86_64/linux/build/Unified_cpp_js_src18.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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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/db/pipeline/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/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from 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 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.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/plan_cache.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 { | ^~~~~~~~~~~~ cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.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/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/x86_64/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DIMPL_MFBT -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/build -Isrc/third_party/mozjs-45/platform/x86_64/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/x86_64/linux/include -Isrc/third_party/mozjs-45/platform/x86_64/linux/include src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.cpp In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src18.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/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src18.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/jit/VMFunctions.h:12, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src18.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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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/CompileInfo.h:10, 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/x86_64/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 | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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/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 | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call 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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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 = long 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/CompileInfo.h:10, 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/x86_64/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/CompileInfo.h:12, 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/x86_64/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 = long 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/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/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/x86_64/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/mongo/db/matcher/expression_parser.h: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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/third_party/mozjs-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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/linux/build/Unified_cpp_js_src23.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 | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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: 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.cpp:29: 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/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/x86_64/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/x86_64/linux/build/Unified_cpp_js_src23.cpp:2: 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/x86_64/linux/build/Unified_cpp_js_src23.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::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/x86_64/linux/build/Unified_cpp_js_src23.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 = long 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/x86_64/linux/build/Unified_cpp_js_src23.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/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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/plan_cache.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::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ gcc -o build/fedora/third_party/wiredtiger/src/os_posix/os_once.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/os_posix/os_once.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from 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 { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h: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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 Install file: "src/third_party/wiredtiger/src/include/wiredtiger_ext.h" as "build/fedora/third_party/wiredtiger/wiredtiger_ext.h" gcc -o build/fedora/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/wiredtiger/src/support/mtx_rw.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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -Ibuild/fedora/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/fedora/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/fedora/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/support/mtx_rw.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-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 -DSTATIC_JS_API=1 -DJS_USE_CUSTOM_ALLOCATOR -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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/x86_64/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/implscope.cpp 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 In file included from src/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 { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 ar rcsTD build/fedora/mongo/db/liblog_process_details.a build/fedora/mongo/db/log_process_details.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/liblog_process_details.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/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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ 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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, 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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h: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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h: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 In file included from /usr/include/string.h:535, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_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 -Defi2=1 -DEFI2=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -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 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 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 unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = 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 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/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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() 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/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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/strcasestr.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 { | ^~~~~ 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/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_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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::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/heap_profiler.cpp: In member function 'void mongo::{anonymous}::HeapProfiler::generateStackIfNeeded(mongo::{anonymous}::HeapProfiler::Stack&, mongo::{anonymous}::HeapProfiler::StackInfo&)': src/mongo/util/heap_profiler.cpp:482:33: error: 'abi' has not been declared 482 | demangled = abi::__cxa_demangle(dli.dli_sname, 0, 0, &status); | ^~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/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 { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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/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 int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from 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 { | ^~~~~ scons: *** [build/fedora/mongo/util/heap_profiler.o] Error 1 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_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_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::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/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 scons: building terminated because of errors. build/fedora/mongo/util/heap_profiler.o failed: Error 1 error: Bad exit status from /var/tmp/rpm-tmp.c2nqfz (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.c2nqfz (%build) Finish: rpmbuild mongodb-4.0.3-3.el9.src.rpm Finish: build phase for mongodb-4.0.3-3.el9.src.rpm INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root/var/log/dnf.rpm.log /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root/var/log/dnf.librepo.log /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root/var/log/dnf.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names ERROR: Exception(/var/lib/copr-rpmbuild/results/mongodb-4.0.3-3.el9.src.rpm) Config(rhel+epel-9-x86_64) 19 minutes 59 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M 47c7e3972bad478da47e44e26e4be5de -D /var/lib/mock/rhel+epel-9-x86_64-1767084518.434607/root -a -u mockbuild --capability=cap_ipc_lock --capability=cap_ipc_lock --bind=/tmp/mock-resolv.f_m26_8n:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/originals/mongodb.spec' Copr build error: Build failed